Hello,

I would like to execute shell commands, but only if their execution
time is not longer than n seconds. Like so:

monitor(os.system("do_something"), 5)

I.e. the command do_somthing should be executed by the operating
system. If the call has not finished after 5 seconds, the process
should be killed.

How could this be done?

Jaroslav
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to