Does anyone know what the correct syntax for a cron scheduled task would be if I were to run a task every 2 weeks (e.g. On the first and 15th of every month).
Tried this - 0 0 7 ? * 1F,15W
Of course that didnt work so Im stuck here. Any guide out there that shows use cases?
Hi JTorrico,
Would something like this help?
0 7 1-7,15-21 * 1
... would run on the 1st and 3rd Monday of a month.
or maybe
0 08 1-7,15-21 * 3
... would run on the 1st and 3rd Wednesday of every month.
For a Saturday run the last digit would change to 6.
example: 0 08 1-7,15-21 * 6
Have a look at this URL it offers some good detail that you may find helpful:
https://www.systutorials.com/how-to-run-a-cron-job-every-two-weeks-months-days/
Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?
The specifying both day of month and day of week is unsupported.
https://docs.mcafee.com/bundle/epolicy-orchestrator-5.10.0-product-guide/page/GUID-E1E6877C-E0C2-49B...
NOTE: If the month does not have a fifth Wednesday, the task does not run.
Example You can run the task based on the day to specify.....
Example: 0 0 19 ? * 5#3"
The alternative to specify 3rd Friday of each month (adding "#3")
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA