Re: Running programs under a python program...

2008-05-21 Thread Matthew Woodcraft
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > So I have a python program that runs a bunch of other programsit > then loops forever, occasionally executing other programs. > > To run each of these programs my python code executes: > subprocess.Popen(command_line, shell=True, stdout=fd, > stder

Re: Running programs under a python program...

2008-05-21 Thread inhahe
maybe you could instead of killing the program stop the loop that starts new processes and start one that runs until the last process ends? also, if you killed the program but stdout was still set to fd and stderr was still set to subprocesses.STDOUT, what would happen when those two objects d

Running programs under a python program...

2008-05-20 Thread [EMAIL PROTECTED]
So I have a python program that runs a bunch of other programsit then loops forever, occasionally executing other programs. To run each of these programs my python code executes: subprocess.Popen(command_line, shell=True, stdout=fd, stderr=subprocess.STDOUT) where command_line is an appropria