[svlug] how to ping a dead system
lists at cyclades.com
Mon May 1 11:56:26 PDT 2000
On Mon, 1 May 2000, Alexander Hartmann wrote:
> > so i send a ping -c1 xxx.xxx.xxx
> > BUT if the system is dead this ping just does not seem
> > to terminate. Any tips on what my script should do to
> > catch this?
> From the ping manpage : (I can't tell which version I have, I found no
> option to output the number) :
> -w maxwait
> Specifies the number of seconds to wait for a response to a pack
> et before transmitting the next one. The default is 10.
> With 'ping -c1 xxx.xxx.xxx.xxx -w 2' , the command terminates after 2
> seconds (which should be enough for a ping), at least on my machine.
This is very good, but it's not available in all systems (I tried 3
different systems here and none of them had the 'w' option).
If this is not available to him, he'll either have to wait for 10 seconds
or use some other application to do this.
More information about the svlug