Hi.
I have a CGI script on my site that works fine when I run it from my browser, but when I try to launch it from a CRON job I get the message, "Can't locate CGI.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 .)"
From what I learned by Googling this message, the simplest way to solve this problem would be to include in my perl file a link to the CGI.pm module. So, where is this module stored? And what's the best way to inform CRON where to find it?
Patiently awaiting your help....
I have a CGI script on my site that works fine when I run it from my browser, but when I try to launch it from a CRON job I get the message, "Can't locate CGI.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 .)"
From what I learned by Googling this message, the simplest way to solve this problem would be to include in my perl file a link to the CGI.pm module. So, where is this module stored? And what's the best way to inform CRON where to find it?
Patiently awaiting your help....