Odd locate behavior
Chris Green
cl at isbd.net
Mon Sep 16 14:53:11 UTC 2024
On Mon, Sep 16, 2024 at 03:27:32PM +0100, Colin Law wrote:
> On Mon, 16 Sept 2024 at 15:20, Little Girl <littlergirl at gmail.com> wrote:
>
> >
> > "For each job, Anacron checks whether this job has been
> > executed in the last n days, where n is the period specified
> > for that job. If not, Anacron runs the job's shell command,
> > after waiting for the number of minutes specified as the
> > delay parameter."
> >
> > I could be interpreting that incorrectly, but here's my take on it:
> >
> > If anacron runs today, it checks if it has been more than 1 day since
> > any daily cron jobs were supposed to fire. Right?
>
> I would interpret it to mean it checks if it is more than 1 day since
> it has actually been executed, not since it was supposed to be
> executed.
> It will never be more than one day since the cron job was supposed to
> run, as it is supposed to run every day.
>
Well it certainly works for me, it has been around for a very long
time so you'd think it would work as intended.
The man page starts off with:-
Anacron can be used to execute commands periodically, with a frequency specified in days. Unlike
cron(8), it does not assume that the machine is running continuously. Hence, it can be used on
machines that aren't running 24 hours a day, to control daily, weekly, and monthly jobs that are
usually controlled by cron.
--
Chris Green
More information about the ubuntu-users
mailing list