我想在 1 月 14 日到 7 月 12 日每个工作日晚上 9 点安排一个任务。 有人可以帮我写这个 cron 表达式吗?
谢谢
纳文。
最佳答案
对于此场景,您必须在 crontab 文件中添加三个条目
00 21 14-31 1 1-5 /your/command/to/execute
00 21 * 2-6 1-5 /your/command/to/execute
00 21 1-12 7 1-5 /your/command/to/execute
关于java - 用于安排任务的 Cron 表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34796270/