[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: cron vs anacron



On 13-Dec-2000 chiappa@centroin.com.br wrote:
> Hi!
> 
> Does cron work correctly in a system which is powered down periodically,
> like a pc at home? If it does, why does anacron exist?
> 

cron runs jobs at certain times.  So, the cron.daily scripts are set to run at
2 in the morning.  If your machine is not running, that job never happens. 
When you power the box on, cron does not look and see what jobs it did not run.
 So, if you power a machine on once a week, for 4 hours from 2 pm to 6 pm, no
system cron job will ever run.  This is what anacron solves.  When the machine
powers on it checks for missed jobs and runs them.



Reply to: