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
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
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 <
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
4 matches
Mail list logo