2012/11/23 Meike Stone <meike.stone@googlemail.com>:
You are right that ENV doesn't work. I don't know why, according to the docs it should. The following works at my workstation:
/etc/crontab: ============================================================ SHELL=/bin/bash PATH=/usr/bin:/usr/sbin:/sbin:/bin MAILTO=root BASH_ENV=/tmp/setenv.sh
I can confirm, that works now, the (first) problem is solved - thanks!
# # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # * * * * * root /tmp/tstvar.pl ============================================================
/tmp/setenv.sh: ============================================================ export DEMO=demo ============================================================
But now, I try to start the job from a crontab in cron.d, /etc/cron.daily , /etc/cron.hourly, /etc/cron.monthly, /etc/cron.weekly.
Sorry, I only mean /etc/cron.d. And this is called from the cron istself and not /usr/lib/cron/run-crons. My mistake. And therefore in each file must SHELL=/bin/bash BASH_ENV=/etc/profile.d/my-enc.sh included ... I understand, but I'm not so lucky about that. Thanks all for help! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org