in reply to Re: using rsh in a perl script
in thread using rsh in a perl script

Hi thanx for the suggestion but I dont want to log into the remote host and check that whether its up or not.In a way you can say that I am performing some task with my script without logging into the remote host.Is there some command through which I can found that the remote host is up or not?

Replies are listed 'Best First'.
Re^3: using rsh in a perl script
by bohrme (Scribe) on Feb 09, 2006 at 15:47 UTC

    But you won't have to log into it to check if the host is up. Your rsh call basically does that and that's not what you want.

    You need to use something like ping to check for a network response before trying to log into the host (via rsh, etc). If pinging the host indicates that it is up then try something like rping to see if the OS is up because I've had many a machine lock up tight yet still respond to pings. This is just an extra measure to ensure that you will get the results you need.