I doubt that, I believe subprocess is the way to go. Just kick it in, sleep for
some time and poll it, increment a counter and sleep again
To call a function from a script with timeout, create a new python script as a
thin wrapper around the function and send the timeout via command line (us
On 07/04/2010 14:24, pacopyc wrote:
Hi, I'm trying to execute a function that could end never (infinite
time). I'd like to set a timeout. If function respond before 30 sec ok,
else go away.
Can I do it? I can't find simple examples. Can you help me?
Have a look here:
http://code.activestate.co