/etc/crontabと/etc/cron.d/の書き方 /etc/crontabと/etc/cron.dの書き方メモです。 書式としては環境変数を設定し、実行するコマンド、シェルのスケジュールを記述という形になります。 参考としてCentOS 6.6の/etc/crontabの初期状態を見てみます。 「/etc/crontab」初期状態 SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # For details see man 4 crontabs # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of mo
![/etc/crontabと/etc/cron.d設定ファイルの書き方](https://cdn-ak-scissors.b.st-hatena.com/image/square/c9084418273149c84ac1031d88b87a22a1119ea8/height=288;version=1;width=512/https%3A%2F%2Fwww.server-memo.net%2Fwp-content%2Fthemes%2Fcocoon-master%2Fscreenshot.jpg)