David,
> for ($x;$x<4;$x++) {
> if ($pid=fork) {
> } else {
> system "mkdir dir$x";
> for ($i=1;$i<250;$i++) {
> open3(OUTPUT, INPUT, ERRORS, cd dir$x;make clean; make all);
> <code to process the output of the make commands and store into
> log files>
Basically, I want the fork to fork of 4 children. Each chiled I want to run
the next for loop which includes the open3 command. The <code to process>,
takes the stdout & stderr from the open3, and saves them to log.$i and error.$i.
This way I can have the logs of every iteration through the 250 for loop.
Of course, since each child will be running 250 compilies, I save the log.$i
& errors.$i for each of the children in a different directory.
Phil
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]