Hi all
Cron expression for every 30mins from 5AM till 5PM, but only on 29th, 30th 31st, 01st, 02nd, 03rd, 04th, 05th, 06th day of the month.
Thank you in advance!
Hi all
Cron expression for every 30mins from 5AM till 5PM, but only on 29th, 30th 31st, 01st, 02nd, 03rd, 04th, 05th, 06th day of the month.
Thank you in advance!
For example, if you were to implement this in a Unix-like environment with tools like cron
, you might use two expressions:
*/30 5-16 29-31 * * /path/to/your/command
*/30 5-16 1-6 * * /path/to/your/command
if you are going to use the Cron expression in orchestrator scheduler. you can use the below.
0/30 5-16 29-6 * *
Hope it helps!!!
since we need to schedule for two different month , basically in cron expression we can schedule for a month with various date. Better you can schedule two process with different schedule like the below.
1st schedule for 29-31st date.
0/30 5-16 29-31 * *
2nd schedule for 1-6th date
0/30 5-16 1-6 * *
if you want to use for the specify dates in the same month you can use like the below
0/30 5-16 1-6,29-31 * *
Thank you so much, and are you able to advise one more.
If I would like to keep the same rules however run the process every 1.5h instead of every 30min?
can you please try with below cron expression.
0 30 5-16/1 29-31,1-6 * ?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.