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