in reply to How do I tell if a remote site is up?
use Net::Telnet
f.e.
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium
Or in shell,use Net::Telnet; if ( my $t=new Net::Telnet(Port => 80, Host => "localhost", Timeout => + 5 )->open() ) { print "localhost is active"; $t->close(); };
This should do the trickecho "."|telnet localhost 80
---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium
In Section
Seekers of Perl Wisdom