in reply to Net::Ping::External
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).
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re: Net::Ping::External
by tye (Sage) on Mar 12, 2001 at 03:34 UTC | |
Re: Re: Net::Ping::External
by Falkkin (Chaplain) on Mar 13, 2001 at 02:34 UTC | |
Re: Re: Net::Ping::External
by Falkkin (Chaplain) on Mar 11, 2001 at 22:18 UTC |