in reply to My Ping attempt in perl

I recommend avoiding the use of ping, and instead attempting to see whether anyone answers the port the service you are interested in is registered (25 for email, 80 for web, 1352 for Lotus and so on).

Your server may have had problems, panicked and/or rebooted into single user mode, the kernel may still be speaking to the network interfaces, but not much else may be happening.

Excuse me for sounding like a broken record on this issue.


print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

Replies are listed 'Best First'.
Re: Re: My Ping attempt in perl
by shotgunefx (Parson) on Jul 05, 2002 at 21:10 UTC
    Definitely should check the services but ping can still helpful to see if it's reachable or not (Assuming you know they don't filter it). The alarms I have written consist of pinging and http-fetching, etc. In my situation it helps isolate the problem. (Especially if I'm on the road.)

    -Lee

    "To be civilized is to deny one's nature."