this shell works,it read each line of the file and output
#!bin/bash
while read line
do
echo $line
done < inputfile
---------------------------
but when i add an rsh command within the loop, shell only reads the first line of the inputfile and stops.
#!bin/bash
while read line
do
echo $line
rsh...
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.