Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Re: Re: Net:Ping HELP!

by daeve (Deacon)
on May 29, 2003 at 07:31 UTC ( [id://261504]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Net:Ping HELP!
in thread Net:Ping HELP!

It needed a little cleaning up but it does work. ;-)

#!/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" };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://261504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found