LoginSignup
0
0

More than 1 year has passed since last update.

crontabの編集と動作確認の方法

Last updated at Posted at 2023-01-08

・編集を始めるコマンド

~$ crontab -e

・crontabそのものの動作確認
~/crontab_config_test.logの内容が1分おきに更新されます。

* * * * * echo 'Crontab is working.' > ~/crontab_config_test.log 2>&1

crontabに記述したコマンドの動作確認
~/crontab_command_test.logの内容が1分おきに更新されます。

* * * * * ここにコマンド > ~/crontab_command_test.log 2>&1

上記でログを確認し、問題なさそうであれば、日時を必要なものに変更する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0