Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cron tab
Date: Wed, 22 Mar 2017 14:34:17
Message-Id: c5c164c4-0e05-fb5a-d310-67d80310b77a@gmail.com
In Reply to: Re: [gentoo-user] cron tab by thelma@sys-concept.com
1 On 03/21/2017 10:10 PM, thelma@×××××××××××.com wrote:
2 > On 03/21/2017 10:49 PM, Michael Orlitzky wrote:
3 >> On 03/22/2017 12:48 AM, Michael Orlitzky wrote:
4 >>>
5 >>> Vixie cron (as well as cronie with USE=anacron) should run the job at
6 >>> the correct time.
7 >>>
8 >>
9 >> blarg, cronie with USE="-anacron", the anacron flag needs to be OFF.
10 >
11 > I have:
12 > sys-process/vixie-cron-4.1-r14 (pam -debug -selinux)
13 >
14 > I created a cron job as root:
15 > 6 18 3 * 1-5 rsync -av /usr/src/linux/.config /home/thelma/backup/etc/etc_atom/kenel-config
16 >
17 > and checking the /var/log/messages it run at 18:06 today (Mar.21) ?
18 > but it should run every month on the 3rd. only at 18:06
19 >
20 > grep cron /var/log/messages
21 > ...
22 > Mar 21 18:06:01 localhost cron[5190]: (root) CMD (rsync -av /usr/src/linux/.config /home/thelma/backup/etc/etc_atom/kenel-config)
23 >
24 > All my system that I upgraded are effected this way :-/
25 >
26 > --
27 > Thelma
28 >
29
30 You've told it to run on the third of the month *and* Mon-Fri. It's just
31 doing what you told it to.
32
33 Dan