cron.daily
Robert Meyer
meyer_rm at yahoo.com
Wed Jun 30 10:42:31 EDT 2004
--- Cyber Source <peter at thecybersource.com> wrote:
> Hello all,
> Can someone give me some insight into how cron.daily works or what man
> page might explain it? I want to know how to adjust the time of day that
> cron.daily runs and what it runs. TIA
>
OK, if you look in /etc/crontab, you will find entries for all of the cron.*
jobs that get run and the scheduled for the system. The entries there are
calls to the 'run-parts' program that pulls all of the files in a directory and
runs them. In the case of daily jobs, it pulls all of the files from
/etc/cron.daily and runs them. These files are typically shell scripts that
perform whatever tasks are needed.
You can do a 'man 5 crontab' for an explaination of the format for the
/etc/crontab file. Note that there is one change. In /etc/crontab, the sixth
field is the userid to run the scripts with. Otherwise, it's the same format
as a user crontab entry.
If you want to run a particular job daily, on a different schedule than the
cron.daily run, use the 'crontab -e' command as the user that has to run the
job or 'crontab -u user -e' as root to edit the job for the user 'user'. On my
system, cron.daily wants to run at 4:02 AM, every day. That entry looks like:
02 4 * * * root nice -n 19 run-parts /etc/cron.daily
This means that at minute 02, hour 4, as root, run everything in
/etc/cron.daily with nice level 19 (lowest priority in the system)
Does this help?
Cheers!
Bob
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
More information about the nflug
mailing list