Clear questions and runnable code
get the best and fastest answer
Perl Module Not Working In Crontabby dailyoliver (Initiate)
|on Jan 05, 2012 at 22:13 UTC||Need Help??|
dailyoliver has asked for the
wisdom of the Perl Monks concerning the following question:
Dear Monks - a little help here would be highly valued..
OS NAME: Red Hat Enterprise Linux 5 RHEL5
Perl version: v5.8.8 built for x86_64-linux-thread-multi
Module Version: Archive::Extract v?
Situation: A bash script 'my_bash.txt' invokes my_perl.pl - both scripts enclosed.
1. If I don't manually invoke 'my_bash.txt' from the same dir that it resides in - for example /usr/my_dir/my_bash.txt -
the Archive::Extract module in /usr/my_dir/my_perl.pl extracts the output to the root folder '/' and not the correct working directory /usr/my_dir/.
2. If I invoke /usr/my_dir/my_bash.txt via root crontab - the Archive::Extract module will not work.
Please could someone help as I have been at this maddening process for days..
BASH SCRIPT BELOW (this invokes my_perl.pl)
PERL SCRIPT BELOW (is called by bash script above)