I am executing a external command ( tar ) using backtick, while checking the return value it gives -1, and the $! gives no child process error. But the tar got created properly.

I tried the same with the system function also, but i get the same error.

Actually am new into the project, did not yet fully know/gonethrough/understood the framework - but referred other external command calls in the same project - and it is done the same way...

Machine is not having any problem: The machine/system which am using/testing this is not having any issue. Confirmed this by writing a sample program which creates a tar, $? gives 0 properly. So can somebody help me, what i have to look at ? Why do i get this error ?

I understand it is not possible to give solution by somebody else very easily. Actually am not looking for a solution, i spent a lot of time in fixing this... So i will be very happy to get atleast clues / guidance in finding out the issue. Thanks in advance.

In reply to External command execution - Strange Error - No child process by Anonymous Monk

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.