zee3b has asked for the wisdom of the Perl Monks concerning the following question:
I installed a perl module manually for my Perl script. Now everytime I run the script from the terminal using "perl script.pl" it runs perfect and I get the output. But everytime I run the script using a cron job it gives me this error
Can't locate GD/Graph/hbars.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)I even tried creating a shell script and even when I run the shell script through the terminal using "sh shellscript.sh" (This script executes the perl script) It works, but everytime I execute this script using a cronjob I get the same error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl @INC Error (cron)
by toolic (Bishop) on Aug 15, 2013 at 15:00 UTC | |
by zee3b (Novice) on Aug 15, 2013 at 15:22 UTC | |
by toolic (Bishop) on Aug 15, 2013 at 15:28 UTC | |
by zee3b (Novice) on Aug 15, 2013 at 15:54 UTC | |
by zee3b (Novice) on Aug 15, 2013 at 15:34 UTC | |
by choroba (Cardinal) on Aug 15, 2013 at 15:53 UTC | |
|
Re: Perl @INC Error
by tobyink (Canon) on Aug 15, 2013 at 15:01 UTC | |
by frozenwithjoy (Priest) on Aug 15, 2013 at 15:22 UTC | |
by McA (Priest) on Aug 15, 2013 at 15:42 UTC |