On Feb 4, 3:34 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 04 Feb 2008 20:59:16 -0200, breal <[EMAIL PROTECTED]> > escribió: > > > I have a soap server written in Python that acts as an intermediary > > between a web service and an InDesign server. The indesign server is > > non-threaded, so when all instances are used up I want to create a new > > instance, get the pid, use the process, then kill it. > > > What is the best way to do this? I don't want to replace the current > > process with the new one which is looks like os.exec* does. > > Use the subprocess module:http://docs.python.org/lib/module-subprocess.html > > -- > Gabriel Genellina
Thanks for the reply. Using subprocess.Popen I am able to get and kill the process. However, the process I am running creates another process (an instance of InDesign Server) so when I kill the first process it doesn't kill the second. Is there any way to capture both PIDs and kill them? Thanks -- http://mail.python.org/mailman/listinfo/python-list