Cron expression to run job twice a day at different time?

↘锁芯ラ 提交于 2019-12-05 03:25:43
jjj

Try following which you will get closest in one expression

0 0 10,15/12 * * ?

this will run 10:00 and 15:00.

You can set values for each job:

0 10 * * * job

30 15 * * * job

Here is more info:

*    *    *    *    *  command to be executed
┬    ┬    ┬    ┬    ┬
│    │    │    │    │
│    │    │    │    │
│    │    │    │    └───── day of week (0 - 7) (0 or 7 are Sunday, or    use names)
│    │    │    └────────── month (1 - 12)
│    │    └─────────────── day of month (1 - 31)
│    └──────────────────── hour (0 - 23)
└───────────────────────── min (0 - 59)

Wikipage about cron https://en.wikipedia.org/wiki/Cron

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!