On 18 Nov 2002, SainTiss wrote:

> Hi,
>
> I'm trying to figure out how cron/at work/cooperate...
>
> How, for example, does cron determine that the scripts in
> /etc/cron.daily need to be executed? Does it just do that at midnight?
> Or does it know when 24 hours have passed since the last execution?


Cronjobs are specified by /etc/crontab. On mandrakesystems (and others as
well) crontab is initially configured to run the scripts in fx. cron.daily
once every day.

The format of the file is:

minute hour day_of_month month weekday user action

so

22 4 * * 0 root run-parts /etc/cron.weekly

runs "run-parts /etc/cron.weekly" as root every monday (0) at 4:22 (am)

> Also, I believe that, if the system is down when the execution should
> take place, at takes over... When does the execution of the
> /etc/cron.daily scripts take place in that case?

"at" simply runs a job at a specified time. Could be a script that checks
if cronjobs has been run. But usually if you have a system that is not up
all the time anacron takes care of the cronjobs

--
./mvh Christian Jul Jensen

  stud.scient.dat
  proff.scriptkiddie


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to