Hello,
On HP-UX shell (sh ou ksh), it seems there is a bug in the while loop.
Try :
echo 'serv1
serv2' | while read N
do
echo $N
done
It works fine and prints:
serv1
serv2
Then try :
echo 'serv1
serv2' | while read N
do
echo $N
remsh $N "ls /etc/passwd"
done
It prints only :
serv1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.