Linux / UNIX Tech Support Forum
This is a discussion on script hangs when a remote server is down within the Shell scripting forums, part of the Development/Scripting category; Hi all, I have made a script which logins to remote servers and fetches some data from it. Is is ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Sponsored Links | ||
|
|
|
|||
|
Hi all,
Thanks for your co-operation. I was looking something like this :-- Quote:
Regards, Vikas |
|
||||
|
Hello,
SSH client will disconnect automatically when remote box is down, you don't need any special logic. Can paste your script so that I can take a look at it
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remote access to linux server | RamPD | Linux software | 9 | 26-05-2008 07:21 AM |
| Fail to mount remote NFS server | satimis | Web servers | 0 | 19-04-2008 08:06 PM |
| Shell script to perform operation on remote server | vivekv | Shell scripting | 3 | 24-10-2007 12:10 AM |
| How to recover if server crash in remote? | kitty@sad | Solaris/OpenSolaris | 1 | 27-02-2007 09:02 PM |
| remote server monitoring for Solaris | pliu0606 | Solaris/OpenSolaris | 4 | 15-10-2005 02:49 PM |