Please help me what's the problem with the script. WHen i run
as it is, it exits after processing the first line of 'found' file.
#! /sbin/sh
cat /home/xxx/found |while read line
do
f1=`echo $line | awk -F, '{print $1}'`
f6=`echo $line | awk -F, '{print $6}'`
f7=`echo $line | awk -F, '{print $7}'`
hostid=xxxxxxxx
ping $f6 && hostid=`rsh $f6 hostid`
echo $f1 $hostid $f7
done
If i comment out ping statement, i can see all the lines in 'found' file
getting processed. Any help is highly valued.