Hello All. I am trying to create a crons expression to run twice a day every day but I am having no luck. I am using 0 16, 0 22 ? * MON-FRI to get the out put of 4PM and 10PM Monday - Friday but instead it runs at 10PM and again in 16 minutes Monday - Friday. Is there a way to set 2 start times in the cons expression?
Hi @Jesse Ortega Jr ,
Let me start off by saying that CRON is always a challenger. 😂
But a saw a little error in your example. Please, could you try this? 0 0 16,22 ? * MON-FRI
If I helped you, please mark my answer as correct to help other members.
Thanks a lot! This worked :)
What if the time include minutes; 8:30 AM and 3:45 PM every Mon-Fri?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Jesse Ortega Jr
Glad to hear that. ✌🏽
About your example, try this: 0 30,45 8,15 ? * MON-FRI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! I seeing the logic now. Thanks a lot for your help, very much appreciated!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.