Check out the work on this already done in Parallel::ForkManager and ForkControl
In reply to Re: Simultaneous system() calls by coreolyn in thread Simultaneous system() calls by Sprad