如何在周日每周运行crontab作业
我试图弄清楚如何在每周的星期日运行crontab作业。我认为以下方法应该有效,但是我不确定我是否正确理解。以下正确吗?
5 8 * * 6
回答:
这是crontab格式的说明。
# 1. Entry: Minute when the process will be started [0-60]# 2. Entry: Hour when the process will be started [0-23]
# 3. Entry: Day of the month when the process will be started [1-28/29/30/31]
# 4. Entry: Month of the year when the process will be started [1-12]
# 5. Entry: Weekday when the process will be started [0-6] [0 is Sunday]
#
# all x min = */x
因此,据此,您5 8 * * 0
将在每个星期日8:05运行。
以上是 如何在周日每周运行crontab作业 的全部内容, 来源链接: utcz.com/qa/431970.html