http://www.perlmonks.org?node_id=703556


in reply to Re: How to call two programs simultaneously from a running program
in thread How to call two programs simultaneously from a running program

After forking, we still have to wait/waitpid for the child process to end in order to avoid zombies, unless we employ the double-fork technique.

Instead, try this: system "perl B.pl &"; system "perl C.pl &"

Reference: How do I start a process in the background?
  • Comment on Re^2: How to call two programs simultaneously from a running program
  • Download Code

Replies are listed 'Best First'.
Re^3: How to call two programs simultaneously from a running program
by GrandFather (Saint) on Aug 11, 2008 at 21:17 UTC

    fork is a somewhat cross platform. system "... &" is rather system dependent. There is no telling what the OP is using of course and there is a fair chance that using & will do the trick for the OP.


    Perl reduces RSI - it saves typing