Jul 8, 2009, 10:52 PM
Post #1 of 2
waitpid and fork
can I wait for process ID that was open in another script?
I'm running script A that open script B
Script B runs fork (on windows) and the father return to script A (on windows), can I save the child $pid in a file, read it from script A and wait for it in script A?
If not, is there a way to communicate between two different scripts? How can one script can tell if the other has finished?
By the way, is it possible that the $pid is negative number? print of $pid gives -4588 (the script runs on windows server)
(This post was edited by kazerm on Jul 8, 2009, 11:14 PM)