Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Checking if the computer is online
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="=?ISO-8859-1?Q?Mickel_Gr=F6nroos?=, post: 1726820"] I want to get this done on both Windows (2000/XP) and (Redhat) Linux (7.x or higher). Isn't there a way to wrap a call to urllib.urlopen in some kind of timer, so that the call fails if there is no answer in N seconds? (I.e. if urllib.urlopen cannot open a specific web page in N seconds, then I assume that the reason is that the computer is not online.) That would be good enough for me. Any suggestions? /Mickel [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Checking if the computer is online
Top