develooper Front page | perl.beginners | Postings from January 2002

RE: Computer connected to the internet?

Thread Previous | Thread Next
From:
John Edwards
Date:
January 4, 2002 04:28
Subject:
RE: Computer connected to the internet?
Message ID:
2FB59B145095D511A7C90050BAC349F3172FE8@MAIL
How about pinging several hosts that have a pretty good chance of being up.
www.microsoft.com, www.netscape.com, www.ibm.com, etc, etc. You could also
ping your local gateway address. If all fail (except for the router as the
link may be down beyond that, but if the ping to the router fails, then you
are definetly without connection) then you could assume you've lost
connection.

John

-----Original Message-----
From: Gary Hawkins [mailto:ghawk@eskimo.com]
Sent: 04 January 2002 12:24
To: beginners@perl.org
Subject: Computer connected to the internet?


How can I check whether the system is connected?

Want to pause the script if connection is lost.  

/g



-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About