Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How do I tell if a remote site is up?

by mce (Curate)
on Nov 12, 2003 at 15:58 UTC ( #306545=note: print w/ replies, xml ) Need Help??


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


Comment on Re: How do I tell if a remote site is up?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://306545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-12-21 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls