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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.