[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash3 on FreeBSD weirdness

From: Miek Gieben
Subject: Re: bash3 on FreeBSD weirdness
Date: Thu, 29 Jun 2006 21:31:16 +0200
User-agent: Vim/Mutt/Linux

[On 29 Jun, @19:10, Bob Proulx wrote in "Re: bash3 on FreeBSD weirdness ..."]
> Chet Ramey wrote:
> > Miek Gieben wrote:
> > > okay, here it it. 
> Better would have been to share that with the mailing list.  :-(

hmmm, I thought I cc-ed it also the ml... well this is the scripts:

> > The root cause is probably that something is consuming all of the
> > input from stdin (the pipe) on FreeBSD and not on Linux.  I suspect
> > the call to `head'.  The two implementations probably read and buffer
> > differently.  This happens all the time, mostly with ssh.
> With ssh for batch mode scripts that are not expected to read stdin it
> is important to include the -n option.  Otherwise ssh itself consumes
> stdin.
>   printf "one\ntwo\nthree\n" |
>   (
>     ssh -n example.com date
>     grep one
>   )

thanks, I might need this in the near future :-)

  - Miek

  PGP: 6A3C F450 6D4E 7C6B C23C  F982 258B 85CF 3880 D0F6

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]