Gentoo Archives: gentoo-user

From: Matt Randolph <mattr@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] script in /etc/cron.daily never runs
Date: Thu, 22 Sep 2005 15:01:28
Message-Id: 4332C56A.5040303@erols.com
In Reply to: Re: [gentoo-user] script in /etc/cron.daily never runs by Dave Nebinger
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