Displaying 2 results from an estimated 2 matches for "degw3".
Did you mean:
deg3
2017 Jan 02
2
cron job failures with a perl script containing Astro::Time
...oaded from the Centos repositories.
The error message I get in the logs is :
Can't locate Astro/Time.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 .) at /usr/local/bin/s.bkup.degw3.prl
line 12.
BEGIN failed--compilation aborted at /usr/local/bin/s.bkup.degw3.prl
line 12.
Line 12 is the line in the perl scrip that contains :
use Astro::Time;
The script works find from the command line, but will not work at all
in a cron job.
After I reviewed the previous posts on this mai...
2017 Jan 02
0
cron job failures with a perl script containing Astro::Time
...e:
>
> The error message I get in the logs is :
>
> Can't locate Astro/Time.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 .) at /usr/local/bin/s.bkup.degw3.prl
> line 12.
> BEGIN failed--compilation aborted at /usr/local/bin/s.bkup.degw3.prl
> line 12.
[snip]
> The script works find from the command line, but will not work at all
> in a cron job.
This almost always points to something in the environment.
Where did Astro::Time actual...