1 |
> Also, check that the environment in the cron script is correct. It does |
2 |
> not execute with the environment that you sit down at a terminal with, in |
3 |
> particular $PATH. |
4 |
|
5 |
Another tip RE: environment variables & cron, if you submit the job via at |
6 |
(sys-process/at), it will create an executable script in |
7 |
/var/spool/at/atjobs for running your submitted job, but the script includes |
8 |
the environment values from the session used to submit the job. |
9 |
|
10 |
So after submission via at, you can take the atjob file, copy it to your |
11 |
/etc/cron.* directory and you'll have everything you need regarding |
12 |
environment. |
13 |
|
14 |
Dave |
15 |
|
16 |
-- |
17 |
gentoo-user@g.o mailing list |