Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
laziness, impatience, and hubris
 
PerlMonks  

Re: A plethora of forks

by marcus (Scribe)
on Aug 31, 2001 at 14:07 UTC ( [id://109386]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to A plethora of forks

Hi..

Wouldn't it be more sensible to use the native Net::Ping? Then you wouldn't have to deal with forking at all :)

Cheers

qw[marcus]

Replies are listed 'Best First'.
Re: Re: A plethora of forks
by ginseng (Pilgrim) on Aug 31, 2001 at 18:34 UTC
    With Net::Ping, 1 is returned if the host is reachable and 0 if it is not. It doesn't actually ever return the ping time, so it's not useful for determining "how far away" the host is.

    Also, Net::Ping will happily block will it's trying to reach the target host, so even if we wanted only to know if the host is up, we'd still have to fork.

    You're right, though, about turning to CPAN first, and I agree. Unfortunately, I tried it and found that it wouldn't do what was needed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://109386]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.