Javan Whenever Gem is sending me the output as local mail

2k Views Asked by At

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

2

There are 2 best solutions below

0
On BEST ANSWER

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

2
On