How can I interrupt os.system(cmd)?

Carl phleum_nospam at chello.se
Sun Nov 21 19:38:27 CET 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