in reply to Re: Re: Executing independet commands in PERL
in thread Executing independent commands in PERL

According to the docs it supports icmp:
$p = Net::Ping->new("icmp"); foreach $host (@host_array) { print "$host is "; print "NOT " unless $p->ping($host, 2); print "reachable.\n"; sleep(1); } $p->close();

Replies are listed 'Best First'.
Re: Re: Re: Re: Executing independet commands in PERL
by jink (Scribe) on Mar 06, 2001 at 17:03 UTC
    I see. But taken from the NOTES from these docs:
    The icmp protocol requires that the program be run as root or that it be setuid to root. The tcp and udp protocols do not require special privileges, but not all network devices implement the echo protocol for tcp or udp.
    I'd rather not use setuid root.