Gentoo Archives: gentoo-user

From: Dave Nebinger <dnebinger@××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] script in /etc/cron.daily never runs
Date: Thu, 22 Sep 2005 01:39:53
Message-Id: 004001c5bf15$98c171c0$0a00a8c0@butthead
In Reply to: Re: [gentoo-user] script in /etc/cron.daily never runs by Nick Rout
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

Replies

Subject Author
Re: [gentoo-user] script in /etc/cron.daily never runs Matt Randolph <mattr@×××××.com>