Resolving 10060, 'Operation timed out'
Does anyone know how to prevent this error from occurring: IOError: [Errno socket error] (10060, 'Operation timed out'). I am using the following code without any luck. Obviously I am missing something. import socket socket.setdefaulttimeout(20) Thank you in advance. Tom Williams -- http://mail.python.org/mailman/listinfo/python-list
Re: Resolving 10060, 'Operation timed out'
I'm including the code that I've been using. I am relatively new to python, and not sure if a socket was created: * import socket socket.setdefaulttimeout(None) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) from urllib import urlopen import urllib, urlparse, string, time web = 'http://www.python.org' socket.setdefaulttimeout(1200) website = web print website pinhtml = urllib.urlopen(website) data = pinhtml.read() sock.close() pinhtml.close() * -- http://mail.python.org/mailman/listinfo/python-list
schedule a monthly ftp event
Greetings, I am looking for some guidance on a script. My goals are: 1) have this script run automatically through a time set schedule. 2) verify if a file is updated on an ftp site (usually on the 15th of the month). 3) If the updated file exists, ftp it to local drive. 4) e-mail other users when the file has been updated on the local drive. I realize this is quite extensive, but any leads or source code will be appreciated. Thanks, Tom W. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Challenge ahead [NEW] for riddle lovers
any help on level 4 would be appreciated. i've looked at the hints, but isn't obvious -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Challenge ahead [NEW] for riddle lovers
yes, I have done that. i'll keep working on it. thanks -- http://mail.python.org/mailman/listinfo/python-list