SPUG: pause for child process

Jim Flanagan jimfl at tensegrity.net
Fri Aug 30 18:44:45 CDT 2002


On Fri, 30 Aug 2002, 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??

  Do you mean wait until the child starts or wait until the child finishes?

  If the latter, take a look at 

    perldoc -tf wait
    perldoc -tf waitpid

  It's harder to know when a child process is fired up and ready for action.
  You have to arrange and manage some channel for communication, so that the
  child can say "okay, I'm ready" (signals, pipes, etc).

-- 
::jimfl

    http://jimfl.tensegrity.net
  mailto:jimfl%40t%65ns%65gr%69ty.n%65t


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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