If this is happening synchronously in the same process, the child should be able to read the file. So, does it happen synchronously? Is it in the same process?

Does the child (ScriptB) drop privileges? Does it run under a different chroot? How does it try to open the file?

Either the child or PB::FileUtils is doing something here to make the file (seem?) inaccessible, but you haven't shown us that particular code, so I cannot say what.

If you would try running the child with system {@pmcmd[0]} @pmcmd, as I suggested, we might be able to find whether or not the "something" in question is found in PB::FileUtils. But even then, I would have to see the code from the guilty party (be it PB::FileUtils or ScriptB) before I can say what precisely is wrong.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!


In reply to Re^5: Using File::Temp Names by Sidhekin
in thread Using File::Temp Names by novicepl

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.