run external program in a loop with max time limit
<p>I wish to have a python script that runs an external program in a loop sequentially.  I also want to limit each execution of the program to a max running time.  If it is exceeded, then kill the program. What is the best way to accomplish this?  </p>

<p>Thanks!</p>
