[clug] Braindead shell?
gbj at theforce.com.au
gbj at theforce.com.au
Wed Mar 24 06:20:17 GMT 2004
cron starts with an empty environment
You can set environment variables in crontab itself such as:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
MAILTO=root
HOME=/
00 * * * * echo :)
Hope this helps
Grahame Jordan
> So I have a Perl script that works perfectly when run from my login, but
> it complains
> bitterly when run in cron where it can't find stuff like FlexLM and
> Oracle.
>
> Is there an easy means of (temporarily) nuking PATH, LD_LIBRARY_PATH,
> ORACLE_HOME
> and all the other assumed variables within an xterm? That is, easier than
> writing another script
> to un-set and re-set them?
>
> Thanks,
>
> Antti
>
More information about the linux
mailing list