Timeout function using Python
I want to implement this;
step 1 : Run a system command (linux) and start a timer.
step 2 : The command should be terminated if it is not completed within the given time.
step 3 : Fetch the output of the command from the stdout if commands completes (or gives an error) within the given time.
I googled a little; but didn't find something useful. I would appreciate it very much if you could add comments (as many as you can) and make the code descriptive because am not a quick learner and don't have much experience in Python coding.
Thank you for helping,
Last edited by vishnu_sreekumar; 07-07-2009 at 01:06 PM.