#!/usr/bin/perl -w use strict; use Net::Ping; my $host = "127.0.0.1"; my $ping = Net::Ping->new("udp"); if ($ping->ping($host,1)){ print "$host is alive\n"} else{ print "$host is unreachable\n" };
In reply to Re: Re: Re: Re: Net:Ping HELP!
by daeve
in thread Net:Ping HELP!
by dannc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |