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.
In reply to Perl @INC Error by zee3b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |