manipulating child processes under Windows

Andres Rosado arosado at softhome.net
Tue Jun 4 20:12:24 EDT 2002


At 12:03 PM 6/4/2002 -0400, Douglas Alan wrote:
> > I managed to do the contrary with one of the spawnl() function. Pass as a
> > first parameter the os.P_WAIT to wait for the program to finish.
>
>But this will only wait for the child process to finish.  In my case,
>the child process is just a stub program that starts up a grandchild
>process and then terminates.  I need my Python program to wait for the
>grandchild process to terminate.  spawnl() doesn't provide a way of
>doing this.

In that case, you need the process information of the grandchild and a call 
for the funcion os.wait(). Sorry I can't help anymore, but I don't know how 
to get that information in Windows. :(


-----------------------------------
Andres Rosado
Email: andresr at despammed.com
ICQ: 66750646
Homepage: http://andres980.tripod.com/

Impartial, adj.:
         Unable to perceive any promise of personal advantage from
espousing either side of a controversy or adopting either of two
conflicting opinions.
                 -- Ambrose Bierce, "The Devil's Dictionary"






More information about the Python-list mailing list