Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: Is My Server Up??

by Anonymous Monk
on Sep 09, 2002 at 15:48 UTC ( [id://196314]=note: print w/replies, xml ) Need Help??

in reply to Re: Is My Server Up??
in thread Is My Server Up??

Sorry, i just realised the 'recieved' typo. Just one more question, is there any way to do a tcp connect rather than a ping?

Replies are listed 'Best First'.
Re: Re: Re: Is My Server Up??
by twerq (Deacon) on Sep 09, 2002 at 16:00 UTC
    Assuming your server is running a web-server:
    use IO::Socket::INET; $sock = IO::Socket::INET->new( PeerAddr => '', PeerPort => 80, Proto => 'tcp'); if ($sock) { print "yep"; } else { print "nope"; }

Re: Re: Re: Is My Server Up??
by Anonymous Monk on Sep 09, 2002 at 15:52 UTC
    Nope. Just changed the spelling and it is still reporting that the server is down, even tho when i run the command it comes back with 1 packets received

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-07-16 04:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.