Problems? Is your data what you think it is? | |
PerlMonks |
Re: Net::Ping::Externalby myocom (Deacon) |
on Mar 11, 2001 at 22:15 UTC ( [id://63635]=note: print w/replies, xml ) | Need Help?? |
For the Win32 ping, you can add '> nul' (the equivalent of '> /dev/null') to give it the same behavior as the other OS's. Also, you have it returning 0 if it finds "100% loss", but it will falsely report success if you feed it a host that doesn't exist, since the result of `ping` will be Unknown host foo.bar. (which doesn't contain "100% loss" in it).
In Section
Code Catacombs
|
|