Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Network Link Status Report Generator

by idnopheq (Chaplain)
on Apr 04, 2001 at 10:46 UTC ( [id://69614]=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 Network Link Status Report Generator

Interesting. I would, however, seriously consider removing the dependency on the external ping command and use Net::Ping. I think it would be safer, likely faster, and takes care of ping's root requirement on some platforms.

Try liberating the appropriate parts of the ping script from PPT.

You need to ensure you have a current version of Net::Ping, so you can choose your ping type (TCP, UDP, or ICMP).

HTH
Dex

  • Comment on Re: Network Link Status Report Generator

Replies are listed 'Best First'.
Re: Re: Network Link Status Report Generator
by drifter (Scribe) on Nov 20, 2001 at 14:40 UTC
    As I see it with Net::Ping you'd still be forced to run it as su (unless you run echo service from (x)inetd).
    It's all in the documentation... Also, Net::Ping doesn't provide the same kind of output as system ping, unless you want to twiddle with timers and timeouts.
    I'd say that it would be neater here to use "open(|/sbin/ping <opts>)".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69614]
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.