View Single Post

  #2 (permalink)  
Old 11-06-2007, 09:56 PM
vikas027 vikas027 is offline
Member
User
 
Join Date: Oct 2007
My distro: Linux RHEL 5
Posts: 33
Rep Power: 0
vikas027 is on a distinguished road
Smile

Hi all,

Thanks for your co-operation.


I was looking something like this :--


Quote:
ping -c 1 -w 180 192.168.1.4 1>/dev/null 2>/dev/null

This will wait for 3 mins, if the machine is up, it will return '0'.

Check the return state of the above command and run ssh it the return value is '0'.
Thanks to all.

Regards,
Vikas
Reply With Quote