in reply to Re: possible perl5.8.7 bug?
in thread possible perl5.8.7 bug?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: possible perl5.8.7 bug?
by Corion (Patriarch) on Jan 03, 2006 at 22:58 UTC | |
by Pstack (Scribe) on Jan 04, 2006 at 04:18 UTC | |
by Pstack (Scribe) on Jan 11, 2006 at 06:59 UTC |