LoginSignup
27
24

More than 5 years have passed since last update.

Raspberry Piでcronを使った時の話し

Posted at

rubyで作ったプログラムをcronで実行したところ、うまく動作しなかったのでログを確認したところ、以下のエラーメッセージが出力されていた。
ちなみに、cronのログは/var/log/syslogにある。

Aug 23 22:12:04 raspberrypi /USR/SBIN/CRON[2331]: (CRON) info (No MTA installed, discarding output)

Raspberry PiではデフォルトでMTAがインストールされていないらしく、postfixをインストールして無事解決。

$ sudo apt-get install postfix

#cronが動かなかったのは恥ずかしいぐらい初歩的な理由なので略…

27
24
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
27
24