特定日期的 Cron 表达式
Cron expression for a particular date
我想要一个 cron
表达 运行 在 9:25 am, 13:25 pm, 14:55 pm 每天。
我尝试了很多方法,但都失败了。
有人可以帮我吗?
您可以通过为每个特定时间创建单独的 cron 作业行来实现此目的。
在 crontab
中看起来像:
25 9 * * * your_command >/dev/null 2>&1
25 13 * * * your_command >/dev/null 2>&1
55 14 * * * your_command >/dev/null 2>&1
我想要一个 cron
表达 运行 在 9:25 am, 13:25 pm, 14:55 pm 每天。
我尝试了很多方法,但都失败了。
有人可以帮我吗?
您可以通过为每个特定时间创建单独的 cron 作业行来实现此目的。
在 crontab
中看起来像:
25 9 * * * your_command >/dev/null 2>&1
25 13 * * * your_command >/dev/null 2>&1
55 14 * * * your_command >/dev/null 2>&1