I'm been running this from Cygwin, but giving it the Windows pid. Is there a way to specify that I want to wait for a Windows pid without having to exit Cygwin, reopen, and then continuing?
EDIT: Actually, that won't work either. I can't wait for a pid whether I go through cygwin or cmd.exe.
User Profile
Collapse
-
Thanks for replying.
I'm not sure how program A launches program B, but I managed to find a way to get the pid of process B.
The only problem is that os.waitpid(pid, 0) doesn't work. It says no child process, but in the documentation I see that any pid should work, whether it is a child or not.
Is there something special I have to do with the pid for it to work? The pid I am using is the one that the...Leave a comment:
-
Child Processes of Child Processes
My python script launches program A. Program A launches program B. Program A closes without waiting for program B to complete. How can I know when program B completes?
This is on a Windows XP machine. Thanks! -
Odd IndexError
Nevermind. How do I delete a post? -
No activity results to display
Show More
Leave a comment: