2
2

More than 5 years have passed since last update.

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

Posted at

第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
2
2
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
2
2