newbie script
Gerhard Häring
gh at ghaering.de
Wed Sep 24 09:26:53 EDT 2003
ataraxia2500 wrote:
> I wanna do a script that launch a programm xyz and relaunch xyz if it
> crashes. what kind of module do I need for such a task?
Something like this:
import os
while 1:
os.system("j:/UT2003/System/UT2003.exe")
os.system executes a program and waits, until the program is terminated.
But there's no way to know wether the program was terminated
deliberately or wether it crashed.
-- Gerhard
More information about the Python-list
mailing list