Last-modified: 2011-12-26 (月) 01:24:43
LinuxTips/cron.monthly、weekly、daily、hourlyの設定を確認したい

概要

方法

  1. /etc/crontabを開く。
    Everything is expanded.Everything is shortened.
      1
      2
      3
      4
      5
      6
      7
      8
      9
    
    -
    |
    |
    !
    -
    !
     
     
     
    
    # /etc/以下cron.hourly、cron.daily、cron.weekly、cron.monthlyの実行タイミングが書かれている。 
    # 実効ユーザーはroot。
    # [分] [時] [日] [月] [曜日] [ユーザ] [コマンド]
     
    # run-parts
    01 * * * * root run-parts /etc/cron.hourly
    02 4 * * * root run-parts /etc/cron.daily
    22 4 * * 0 root run-parts /etc/cron.weekly
    42 4 1 * * root run-parts /etc/cron.monthly

検証時の環境