SPUG: pause for child process
Shawn Wagner
shawnw at speakeasy.org
Fri Aug 30 18:34:11 CDT 2002
On Fri, Aug 30, 2002 at 04:12:23PM -0700, Baker, Stephen M wrote:
> if a child process is started using a system call, is there a way to wait
> until the child process executes before continuing with the script??
perldoc -f waitpid. For that matter, perl's system() waits for the child
process to exit before returning...
If you mean you want to wait for the child process to start running, but not
neccessarily for it to exit before the parent continues, perhaps opening a
pipe and have the child write to it while the parent blocks waiting to read
from it?
--
Shawn Wagner
shawnw at speakeasy.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list