Just another Perl shrine | |
PerlMonks |
Re: Checking Server Availabilityby Desdinova (Friar) |
on Mar 12, 2003 at 08:53 UTC ( [id://242288]=note: print w/replies, xml ) | Need Help?? |
THe above advice is the way that I would go.. Just to throw my 1/50th of dollar in.. You mention using ping, for just checking connectivity this is fine, but even if you can ping it it doesn't mean the service you are going to use is up. I have had machines that ping fine but have had the ftpd or httpd process die an untimely death. I think the best approach is to test the conncetion to the service you need, and like any good network code make sure there is a timeout that is monitored so that if the connection fails the program acknoledges that and moves along.
In Section
Seekers of Perl Wisdom
|
|