LoginSignup
2

More than 3 years have passed since last update.

posted at

【N予備校】crontab -e のエラーについて

第2章準備しようの10番で出てくる

毎時16分にシェルを実行するbotを作るつもりが…

16 **** /home/vagrant/workspace/bot/niconico-ranking.sh10 **** /home/vagrant/workspace/bot/niconico-ranking.sh

crontab -e で出てきたエラー文

5分くらいつまずいた
no crontab for vagrant - using an empty one
crontab: installing new crontab
"/tmp/crontab.TcEYJb/crontab":22: bad day-of-month
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n)

こう書けばよかった

16 * * * * /home/vagrant/workspace/bot/niconico-ranking.sh

無事にbotができた

crontab: installing new crontab

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
What you can do with signing up
2