!!crontab のメモ !使い方 crontab [ -u ユーザ名 ] { -l | -r | -e } オプション -l crontab の内容を表示する -e crontab の内容を編集する !書式 1 19 * * * run_your_command 19時01分にrun_your_command を実行する 内容(左から) 分 00-59 時 00-23 日 1-31 月 1-12 曜日 0-7 ( 0:日曜,1:月曜, ...., 7:日曜 ) 指定方法 1,15,35,55 * * * * run_command ( 毎時 1,15,35,55分に実行) 10-19 8 * * * run_command ( 8時の10〜19分の間に毎分実行) 7 1,8-18 * * * run_command ( 1時と8時〜18時の7分に毎時実行 ) */10 3 * * 1-6 run_command ( 月曜から土曜の午前3時に10分毎に実行 ) [ sun の場合には 10,20,30,40,50 3 * * 1,2,3,4,5,6 run_command と表記の事) * 3 * * 1-6 run_command > logfile 2>&1 (もしくは) * 3 * * 1-6 run_command >& logfile :: linux に限る?? bash4 以降