|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Ping and Tracertby marcus (Scribe) |
| on Aug 31, 2001 at 17:47 UTC ( [id://109458]=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.
Seems to be Net::Ping doesn't suit you, since it'll only return alive/dead, and you can't set the timeout to less than a second. Shouldn't be too hard to $result=`ping $host`; And parse the output with a simple regexp, but you should be aware that ping returns different output depending on which platform you run it on, so if you are going to distribute it, that might not work for you. Anyways, good luck :) qw[marcus]
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||