Equivalent of alarm(3600) in Python

Posted by knorv on Stack Overflow See other posts from Stack Overflow or by knorv
Published on 2010-06-01T09:09:22Z Indexed on 2010/06/01 9:13 UTC
Read the original article Hit count: 107

Filed under:

Starting a Perl script with alarm(3600) will make the script abort if it is still running after one hour (3600 seconds).

Assume I want to set an upper bound on the running time of a Python script, what is the easiest way to achieve that?

© Stack Overflow or respective owner

Related posts about python