At 05:35 PM 6/17/01 -0400, Ronald J. Yacketta wrote:
>Folks,
>
>Can someone shed some light on using fork to spawn 2+ simultaneous process?
>I am reading in allot of logfiles and splitting them into 3 separate arrays.
>Currently I am forking and doing a exec("egrep", "-c", "Err", @array1);
>(yes, ugly but it is just the beginning!) this works well
>if I were to exec one at a time, I would like to fork and send all three
>execs rolling at one. any clues?

Just do three forks, each with its own exec.  Then call wait() until 
they're all done.

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com

Reply via email to