Changing the system($cmd) to exec($cmd) seems to work! However I get the following warning
Statement unlikely to be reached at /path/to/Script.pl line 653 (#1) (W exec) You did an exec() with some statement after it other than + a die(). This is almost always an error, because exec() never retur +ns unless there was a failure. You probably wanted to use system() instead, which does return. To suppress this warning, put the exe +c() in a block by itself. (Maybe you meant system() when you said exec()?)
Also, when I look at the top output, I do not see 16 but around 2-3 SomeBinarys running. I don't really know why I don't see 16 of them, but looking at how fast the corresponding output files are generated, it actually looks like there are 16 running. Maybe they are spawned and finished so fast that I do not see all 16 at the same time..? Also, some of them out of these SomeBinarys are shown as SomeBinary <defunct> . But maybe those are the SomeBinarys that are about to finish or something..?
In reply to Re^2: Parallel::ForkManager Memory issue
by hotel
in thread Parallel::ForkManager Memory issue
by hotel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |