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
In reply to Re: How do I tell if a remote site is up?
by mce
in thread How do I tell if a remote site is up?
by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |