Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] cron tab
Date: Wed, 22 Mar 2017 06:50:21
Message-Id: 5d72ac61-21c9-fb86-e393-1ebfe08ade5d@gmail.com
In Reply to: [gentoo-user] cron tab by thelma@sys-concept.com
1 On 22/03/2017 02:27, thelma@×××××××××××.com wrote:
2 > I have a cron tab entry:
3 > 5 18 3 * 1-5
4 >
5 > To my understanding it will run 18:05 on the 3rd day of the month, from
6 > Mon-Fri.
7 >
8 > So why did this cron entry run today?
9 >
10
11 You have not read the man page.
12
13 Fields 3 & 4 plus 5 are not anded like you are assuming. It is more
14
15 (3 AND 4) OR 5 giving you this:
16 Run at 18:05 on the 3rd,
17 and also
18 Run at 18:05 every Mon-Fri
19
20 and it's all in the man page, and you are having an alarming tendency to
21 not read them. Please deal with this internal lack.
22
23 Now this all makes sense. You cannot possibly have the 3rd day of the
24 month happen Monday to Friday
25
26
27
28 --
29 Alan McKinnon
30 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] cron tab thelma@×××××××××××.com