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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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



kazerm
New User

Jul 8, 2009, 10:52 PM


Views: 1921
waitpid and fork

Hi,

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)

Thanks

(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