Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cron - once a month during week days
Date: Fri, 06 Feb 2015 23:02:07
Message-Id: CAGfcS_mkyB8eE0weYMzwVV4kg7-tgcigoLYm3suAjdB-jP88bw@mail.gmail.com
In Reply to: Re: [gentoo-user] cron - once a month during week days by Alan McKinnon
1 On Fri, Feb 6, 2015 at 3:12 AM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
2 > On 05/02/2015 22:49, Rich Freeman wrote:
3 >> On Thu, Feb 5, 2015 at 2:43 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
4 >>>>
5 >>>> I was under impression that it will run once a month on Monday but it
6 >>>> seems to be running every day, why?
7 >>>>
8 >>>
9 >>> Basically, what you want to do cannot be done in a plain crontab. You
10 >>> might be able to leverage anacron to accomplish what you want.
11 >>>
12 >>
13 >> [Timer]
14 >> OnCalendar=Mon *-*-1,2,3,4,5,6,7 12:08:00
15 >>
16 >> (ducks!)
17 >>
18 >
19 >
20 > In my defense, I've never used anacron, I just have some idea of what it
21 > can do by reading a man page here and there :-)
22 >
23
24 Also in your defense - that wasn't anacron, but a systemd timer unit. :)
25
26 --
27 Rich