ssh: connect to host .....No route to host
Hi All,
I am exceuting a script file after connecting a server using ssh .
ssh -f <IPADDRESS1> '/root/Desktop/a.sh &'
ssh -f <IPADDRESS2> '/root/Desktop/a.sh &'
....................
Now Out of 10 ips , 7 ips are connected. For rest of the ips (ie 3) it is showing
ssh: connect to host .....No route to host
and I am not able to put this connection error in a log file.
So , I want a solution that will produce an error/alert message if the ip is not connected as for rest of the ips the script file is being executed properly and getting the desired result.....
Thanks in advance
|