Update:use Net::Ping; $host = shift; $p = Net::Ping->new(); $p{"timeout"} = 0.05; # or whatever print "$host is alive.\n" if $p->ping($host); $p->close();
# $p{"timeout"} is wrong # $p->{"timeout"} is correct
In reply to Re: Pinging multiple hosts
by sh1tn
in thread Pinging multiple hosts
by oded_dd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |