Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Perl @INC Error

by frozenwithjoy (Curate)
on Aug 15, 2013 at 15:22 UTC ( #1049609=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl @INC Error
in thread Perl @INC Error

To follow up on your suggestion, I recommend that zee3b put the following in a cron job:

* * * * * echo $PERL5LIB * * * * * echo $PERL5OPT

And if one isn't as expected just set the appropriate variable in crontab (but above any cron jobs).


Comment on Re^2: Perl @INC Error
Download Code
Re^3: Perl @INC Error
by McA (Priest) on Aug 15, 2013 at 15:42 UTC

    Another solution is to call the script in the cron this way:

    bash -l -c "perl /path/to/script.pl"

    With that you assure that the environment is build like the one you have on the console, where you tested your perl script.

    McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-04 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls