in reply to My Ping attempt in perl

Ouch... and ouch again. You need Net::Ping.

Update: jmarshall99 makes a good point. It appears from the docs that Net::Ping::External solves the problem he speaks of.


_______________
D a m n D i r t y A p e
Home Node | Email

Replies are listed 'Best First'.
Re: Re: My Ping attempt in perl
by jmarshall99 (Acolyte) on Jul 06, 2002 at 03:41 UTC
    The problem with Net::Ping is that the "icmp protocol requires that the program be run as root or that it be setuid to root" (from perldoc Net::Ping). Otherwise, it will try tcp or udp connections to the remote system's "echo" port. Many systems do not have an echo server running, which would make them seem unreachable, even when they are not. The system's "ping" command should work fine, anyway, given the corrections made by others in this node.