http://qs321.pair.com?node_id=306545


in reply to How do I tell if a remote site is up?

use Net::Telnet f.e.
use Net::Telnet; if ( my $t=new Net::Telnet(Port => 80, Host => "localhost", Timeout => + 5 )->open() ) { print "localhost is active"; $t->close(); };
Or in shell,
echo "."|telnet localhost 80
This should do the trick
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium