On Fri, Jun 02, 2000 at 03:35:53PM -0500, Alan Mead wrote:
: In perl, you could issue the ping command in backticks (make *sure* you 
: give it a count) and evaluate whether it gives any output.  You'd have to 
: play with it to get it to work since some output is produced even if there 
: are no responses...

Why spawn /bin/ping when you could use Net::Ping instead?

: You should be aware, though, that it is entirely possible that important 
: services have died (lpd, for example) while the host is still up.  

Agreed.  IO::Socket will help with that...

-- 
Jason Costomiris <><           |  Technologist, geek, human.
jcostom {at} jasons {dot} org  |  http://www.jasons.org/ 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to