Hi i m writing a script which will fetch data from different machines and display it on single terminal.
I have created a file named SERVERNAMES containing ip address of machines i need to monitor.
Then for every IP i m issuing ssh command to get date on that machine.
However When i m trying it on the script it is just giving me output of first server and it is ignoring rest servers mentioned in file.
ssh works find without password for all machines mentioned in SERVERNAMES.
# cat SERVERNAMES
while read line
#Calculate Load on remote machine.
Date=`ssh -T -q $line date`
echo "Date on $line is:$Date"
done < SERVERNAMES
Date on 10.180.8.231 is:Wed Jul 14 10:48:46 IST 2010
please help as i m not getting the output for .
Is there anything wrong in ssh?