Constructing cron expressions

Андрей Квасов April 17, 2019

Is it possible to make several conditions in one crown? Example 0 15 8 ? * 6#2 or  0 15 8 ? * 2#3 and 0 15 8 ? * 4#3.

2 answers

1 accepted

0 votes
Answer accepted
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2019

I believe he’s trying to do an or statement cron job which I don’t know how to pull off.

Here is a sample about using list: https://superuser.com/questions/470886/crontable-or-conditions

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 17, 2019

Hello @Андрей Квасов 

Where are you trying to use this cron expression?

 

I always use - http://www.cronmaker.com/ to create cron expressions.

Андрей Квасов April 17, 2019

Cron.PNG

 

I use cron for the rule to create a ticket. It is necessary to create every Monday and Thursday of the first and second week of the month. And also Monday, Wednesday, Friday, third and fourth weeks of the month. Evey month. How to implement it?

Suggest an answer

Log in or Sign up to answer