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
精彩评论