LoginSignup
32
22

More than 5 years have passed since last update.

安全なcrontabの設定管理

Posted at

crontabのオプションは隣にあるeとrで意味が逆になる(edit/remove)のでcrontabコマンドを実行するのは怖いけれど,crontabの引数にファイル名を渡すと,そのファイルから読んで設定してくれる.

crontab -l > ~/crontab # 今の内容を出力
edit ~/crontab # 設定変更
crontab ~/crontab # ファイルから読み込む.現在の設定は上書きされるので注意
32
22
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
32
22