Dave Nebinger wrote:

Also, check that the environment in the cron script is correct. It does
not execute with the environment that you sit down at a terminal with, in particular $PATH.


Another tip RE: environment variables & cron, if you submit the job via at (sys-process/at), it will create an executable script in /var/spool/at/atjobs for running your submitted job, but the script includes the environment values from the session used to submit the job.

So after submission via at, you can take the atjob file, copy it to your /etc/cron.* directory and you'll have everything you need regarding environment.

Dave


Thank you for the suggestion.  I'll have to experiment with this.

Matt
--
gentoo-user@gentoo.org mailing list

Reply via email to