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

Re: Executing a Script every hour

On Fri, Oct 03, 2003 at 01:04:04AM +0100, Pigeon wrote:
> On Wed, Oct 01, 2003 at 07:55:30PM -0700, Paul Johnson wrote:
> > On Wed, Oct 01, 2003 at 12:15:19PM -0400, Derrick 'dman' Hudson wrote:
> > > anacron.
> > > 
> > > cron and anacron solve similar problems but with a different approach
> > > based on different requirements.  The two are not mutually exclusive.
> > 
> > Ah.  Well, that's for stuff that has to be run even when the machine's
> > down.
> I'd love to be able to run stuff when my machine's down. :-) What did
> you actually mean?

I don't know what he meant but the way I understand it, cron runs stuff
at a specified time. For example you could set up logrotation to happen
on tuesdays at 11:05 PM. Except what happens if the user turns off the
machine at 10 oclock each night. Then the logs never get rotated. With
anacron you say the logrotation should occur every X hours/days/etc the
computer is on.

P.S. I'm really not sure about this, I've never used anachron directly,
though I have used cron a good deal.

Bijan Soleymani <bijan@psq.com>

Attachment: signature.asc
Description: Digital signature

Reply to: