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 /etc/cron.d, /etc/cron.daily , /etc/cron.hourly, /etc/cron.monthly, /etc/cron.weekly. That does not work. I don't get the Environment if i run 'env/set' it from there. These jobs there are invoked from /usr/lib/cron/run-crons, which is started from /etc/crontab. Thanks Meike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org