How can I interrupt os.system(cmd)?

Carl phleum_nospam at chello.se
Sun Nov 21 13:38:27 EST 2004


Dear friends,

I have written a small Python program that executes "cmd" via
os.system(cmd).

My problem is that "cmd" runs on forever.

More specifically, I want to run "cmd" for one hour on a regular day-to-day
basis by using crontab as a scheduler.

What options do I have to control execution of external programs from
Python?

Carl




More information about the Python-list mailing list