Re: Best Way To Bound Function Execution Time

2011-12-31 Thread Paul Rubin
Tim Daneliuk writes: > Is there some standard Pythonic way to bound how long a function > call can run, after which time it is forcefully terminated? Basically, run it in a separate process and use os.kill to kill it. -- http://mail.python.org/mailman/listinfo/python-list

Best Way To Bound Function Execution Time

2011-12-31 Thread Tim Daneliuk
I am writing some paramiko-based ssh routines. One of them logs into a remote server and then does a sudo command. The problem is that if the user provides the incorrect sudo password, the call hangs the other end is waiting for the correct password to be entered. Is there some standard Pythoni