sourcing in perlscript run by crontab

Arun arun.george.1981 at gmail.com
Sat Oct 20 19:06:20 UTC 2007


Hi All,

I have a crontab which calls a perlscript for building my project. I am
using the environment variabel CATALINA_HOME in it.
If I run the perl script manually the value of ${CATALINA_HOME} is correctly
interperetted.
But when I run the same perl script thru crontab the value is empty. I tried
sourcing the .bashrc file which contains the value.
export CATALINA_HOME='/usr/local/bin/apache-tomcat-6.0.13'
Even then the perl script that is run as crontask mistook the variable
having an empty value.

What might be the reasons.?

-- 
Thanks
Arun George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071021/d7c9ee95/attachment.html>


More information about the ubuntu-users mailing list