Re: ssh breaks while loop

2006-08-14 Thread Ehud Karni
On Mon, 14 Aug 2006 09:54:21 -0400, Kenneth Nellis wrote: > > FWIW, I see the same behavior, but not just Cygwin, but also on > a Red Hat Linux installation, so I guess it's more of a bash/ssh > issue than one with Cygwin. There are 2 issues here, One is ssh's, the other is with sh/bash. None is C

RE: ssh breaks while loop

2006-08-14 Thread Kenneth Nellis
FWIW, I see the same behavior, but not just Cygwin, but also on a Red Hat Linux installation, so I guess it's more of a bash/ssh issue than one with Cygwin. A workaround that works for me is the following: for host in $(mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 10:01 AM To: cygwin

Re: ssh breaks while loop

2006-08-04 Thread Igor Peshansky
On Fri, 4 Aug 2006, CB wrote: > If file hostlist contains: > hosta > hostb > hostc > > then execute this shell script: > while read host > do > ssh $host ls -al .profile > done < hostlist > > the while loop executes one time and quits. > > But, > while read host > do > echo $host > done <

Re: ssh breaks while loop

2006-08-04 Thread Larry Hall (Cygwin)
CB wrote: If file hostlist contains: hosta hostb hostc then execute this shell script: while read host do ssh $host ls -al .profile done < hostlist the while loop executes one time and quits. But, while read host do echo $host done < hostlist executes 3 times. Am I missing som