| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
I have a php script that spawns another script approx 30 times with different args. I'm running the spawned scipt in background and everything seems fine.
My question: Is there a way to cause the main script to wait on the spawned processes to complete before it moves to the next step or completion?
exec("/blah/blah/script2.cgi arg* >/dev/null &");
code to run after spawned processes have completed
nevermind. I found bash wait :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved