开发者

Javan Whenever Gem is sending me the output as local mail

开发者 https://www.devze.com 2023-02-09 15:34 出处:网络
Javan\'s Whenever gem for Ruby on Rails is fantastic, however, I\'m having one issue with it, namely that it sends whatever 开发者_如何学运维output I\'ve logged to /var/mail/user, which I don\'t want

Javan's Whenever gem for Ruby on Rails is fantastic, however, I'm having one issue with it, namely that it sends whatever 开发者_如何学运维output I've logged to /var/mail/user, which I don't want to receive. Does anyone know how to turn this off?

Thanks,

Harris


Whenever allows also to direct standard output and errors differently, for example to /dev/null if you don't want any mail or logging. For details, see: https://github.com/javan/whenever/wiki/Output-redirection-aka-logging-your-cron-jobs


Set

env :MAILTO, ""

http://groups.google.com/group/whenever-gem/browse_thread/thread/4eed7957127a72d4

0

精彩评论

暂无评论...
验证码 换一张
取 消