小编典典

如何在周日每周运行crontab作业

linux

我试图弄清楚如何在每周的星期日运行crontab作业。我认为以下方法应该有效,但是我不确定我是否正确理解。以下正确吗?

5 8 * * 6

阅读 1047

收藏
2020-06-02

共1个答案

小编典典

这是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运行。

2020-06-02