CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced: waitpid and fork: Edit Log

New User

Jul 8, 2009, 10:52 PM

Views: 2095
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)

Edit Log:
Post edited by kazerm (New User) on Jul 8, 2009, 11:14 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives