use Net::Ping; ... sub controlla{ my $ok = 0; my $p = Net::Ping->new("icmp"); my $tries = $conteggio; while ($tries-- > 0) { $++ok if $p->ping($host); } return $ok; }
In reply to Re: when no ping say 'moo!'
by ruzam
in thread when no ping say 'moo!'
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |