markseger has asked for the wisdom of the Perl Monks concerning the following question:
As an experiment, I created my ping object using 'icmp', and then it worked, but I had to run it as root and I need to do this as a non-priv user. Worst case I can always run /bin/ping inside my perl if I have to but I would much rather find out what is wrong.
use Net::Ping; $host=$ARGV[0]; $p=Net::Ping->new(); print "PING: $host\n"; $status=$p->ping($host); print "STATUS: $status\n";
-mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why doesn't Net::ping work when native ping does?
by BrowserUk (Patriarch) on Jan 27, 2012 at 15:47 UTC | |
|
Re: why doesn't Net::ping work when native ping does?
by Eliya (Vicar) on Jan 27, 2012 at 15:59 UTC | |
|
Re: why doesn't Net::ping work when native ping does?
by Corion (Patriarch) on Jan 27, 2012 at 16:00 UTC | |
|
Re: why doesn't Net::ping work when native ping does?
by Anonymous Monk on Jan 27, 2012 at 21:07 UTC | |
|
Re: why doesn't Net::ping work when native ping does?
by Khen1950fx (Canon) on Jan 28, 2012 at 15:02 UTC | |
by afoken (Chancellor) on Jan 29, 2012 at 08:15 UTC |