Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: @INC error

by syphilis (Bishop)
on Jan 17, 2020 at 23:56 UTC ( #11111561=note: print w/replies, xml ) Need Help??


in reply to Re^2: @INC error
in thread @INC error

The program "email-reminder-2.0.pl" appears to run correctly when called independently but not when called by cron.

It therefore seems that a different @INC is being used when cron runs the script.
The error message plainly states that @INC is:
/usr/local/lib64/perl5/5.30 /usr/local/share/perl5/5.30 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5
If /usr/local/share/perl5/Mail/Mailer.pm exists, then @INC needs to include /usr/local/share/perl5.
But /usr/local/share/perl5 is not one of the locations specified in @INC when cron runs the script.

Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-02-28 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?