Front page | perl.beginners |
Postings from February 2012
Module error
Thread Next
From:
Punit Jain
Date:
February 15, 2012 10:13
Subject:
Module error
Message ID:
8808796.646.1329329605520.JavaMail.punit@Punits-Mac.local
Hi,
I am running my perl script and using some perl modules like below :-
use File::Path qw(mkpath);
use File::Rsync;
my $rsync = '/opt/zimbra/rsync/bin/rsync';
when I run the script using
perl scriptname --> then it runs fine, however when I run through crontab, it get this error : -
Can't locate File/Rsync.pm in @INC (@INC contains:/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /opt/zimbra/lbin/backup.pl line 8.
Any clues ?
Best Regards.
Thread Next
-
Module error
by Punit Jain