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
In reply to why doesn't Net::ping work when native ping does? by markseger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |