简体   繁体   中英

cron job - Run at different time on Monday, Wednesday, and Friday

I want my cron run the script on Monday at 10, Wednesday at 11 and at Friday at 12

I tried this

0 10 * * 1,3,5

But this will run the script 10h those days, any help?

You can duplicate task for different days with different time:

 0 10 * * 1 command to be executed
 0 11 * * 3 command to be executed
 0 12 * * 5 command to be executed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM