Hi all,

I am writing a perl script, call it 'Master.pl'. I am also writing another
script, 'Peon.pl'. I'm using perl5 on a Unix system, and what I'd like to do
is allow Master.pl to spawn multiple instances of Peon.pl, as if someone was
executing it from the command prompt with an ampersand (&). I've tried
something like 

        system("perl", "Peon.pl", "arg1", "arg2", "&");

from withing Master.pl, though that hasn't yielded the results I need
(instead of runing Peon.pl and returning immediately from the 'system' call,
it waits for Peon.pl to finish executing before returning). Does anyone know
how I might be able to execute Peon.pl as a separate process that can run in
parallel with Master.pl (and possibly other copies of Peon.pl)?

thanks a lot,
Yazan

Reply via email to