script hangs when a remote server is down
Hi all,
I have made a script which logins to remote servers and fetches some data from it.
Is is working perfectly when all servers are reachable
BUT
my problem is -- if in case a server is down (or not reachable), the script hangs.
Is there some way, that the script just continues to ssh another server when a particular server is not responding say for 30 sec.
I am using ssh to login into servers and have used ssh-keygen command to bypass passwords.
Pls help, just finalizing the script.
Thanks in adv.
Regards,
Vikas
|