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