毎週日曜日にcrontabジョブを実行する方法 質問する

毎週日曜日にcrontabジョブを実行する方法 質問する

毎週日曜日に crontab ジョブを実行する方法を見つけようとしています。次の方法は機能すると思いますが、正しく理解しているかどうかわかりません。次の方法は正しいでしょうか?

5 8 * * 6

ベストアンサー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 に走ることになります。

おすすめ記事