messageboardfan1 at yahoo.com
Wed Sep 24 15:40:18 CEST 2003
ok thanx I'm on linux, what I want basically is the script to launch xyz
and then check if it's running using os.system('xyz'), and if it's not
running I want the script to relaunch xyz. So could u tell me please also
how to launch or relaunch a programme please :)
> If you're UNIX based:
> os.system('xyz') will return the exit status of your program xyz.
> More importantly for you, it will return!
> So try an (ugly) loop like:
> import os
> while 1:
> 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?
More information about the Python-list