On 03/22/2017 12:46 AM, Alan McKinnon wrote:
> On 22/03/2017 02:27, the...@sys-concept.com wrote:
>> I have a cron tab entry:
>> 5 18 3 * 1-5
>>
>> To my understanding it will run 18:05 on the 3rd day of the month, from
>> Mon-Fri.
>>
>> So why did this cron entry run today?
>>
> 
> You have not read the man page.
> 
> Fields 3 & 4 plus 5 are not anded like you are assuming. It is more
> 
> (3 AND 4) OR 5 giving you this:
> Run at 18:05 on the 3rd,
> and also
> Run at 18:05 every Mon-Fri
> 
> and it's all in the man page, and you are having an alarming tendency to
> not read them. Please deal with this internal lack.

Yes, you are correct; I have to work on it.

> 
> Now this all makes sense. You cannot possibly have the 3rd day of the
> month happen Monday to Friday

You are correct it should be:
5 18 3 * *

--
Thelma


Reply via email to