My apologies for taking the shortcut of looking only for a shared experience here (as clue) rather than a solution. The complexity of the problem etc!

(runme.sh): exec perl5.8.7 cronmgr.pl # always succeeds for 5.8.0

(cronmgr.pl): use Carp; print "ok done\n";

#non-cron> runme.sh # ==> "ok done"

#cronuser> runme.sh # ==> "ok done"

(cronmgr.pl): use BerkeleyDB; print "ok done\n";

#non-cron> runme.sh # ==> "ok done"

#cronuser> runme.sh # ==> FAIL

Let $bdbpath = `find / -name BerkeleyDB` # result(s)

(cronmgr.pl): use lib $bdbpath; use BerkeleyDB; print "ok done\n";

#non-cron> runme.sh # ==> "ok done"

#cronuser> runme.sh # ==> FAIL

The actual wrapper code in cronmgr.pl uses eval and logs custom messages from the results (but no captured meta output). The primary suspect is the cron environment, of course. But one would expect a targetted "use lib" to counter that surely? I have yet to try if Carp will be more informative. I will also try rolling out a newer cron, as suggested, seeing there are no similar experiences out there!

cheers Pstack


In reply to Re^2: possible perl5.8.7 bug? by Pstack
in thread possible perl5.8.7 bug? by Pstack

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.