Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: A plethora of forks

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


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 22: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
Node Status?
node history
Node Type: note [id://109386]
help
Chatterbox?
[marto]: William Gibson was right
[moritz]: a classical problem with machine learning
[1nickt]: moritz isn;t the difference today that the machine learning algos are in charge of most stuffs?
[moritz]: depends on what you mean by "most stuff"
[1nickt]: I am sure I don't know about most of the stuff that is no longer controlled by humans. I do know that it's past the point of determining consumer pricing and into things that can kill me with blunt force!
[holli]: but is this really a problem 1nickt? Nobody knows how your human taxi drivers brain works either

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-11-21 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?