On Tue, 30 Jul 2002, Angerstein wrote:

> Hello,
> I wrote a big skript which uses net::ping (ping.pm) (and tk).
> I noticed that the resultes of Net::Ping are not identical to the system
> commad ping.
> Much more Items are not reachable over Net::Ping then they are over the
> system command.

The system ping command sends ICMP echo packets and by default Net::Ping
sends udp packets. This will work only if the machine you are pinging
supports udp echo requests. For compatibility with system ping command
change 
my $pink = Net::Ping->new();
to
my $pink = Net::Ping->new("icmp");

Note: You will need to have root permission to send icmp packets on a
unix machine.
  
> I canīt explain why. (Even after rewriting 500 lines of code). So i build a
> small cgi to test net::ping and the result was the same.
> I am sure syntax is corret because it work "sometime". My big app is only
> commented in german so
> I think you can help me better with this short cgi.
> 
> Big Thanks!
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to