I know that default cron's behavior is to send normal and error output to cron's owner local email box.
Is there other ways to get theses results (for example to send it by email to a bunch of people, to store them somewhere, and so on) ?
To email the output to a different email address just add the line
MAILTO="[email protected]"
To the crontab before the command
You could chuck file redirection onto either the command shown or the actual command in the crontab for both stdout and stderr - like command > /tmp/log.txt 2>&1
.
If you want several users to receive this log, you could insert a MAILTO=nameofmailinglist
at the top of you cron file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With