So I have a mail server configured and I want cron to send me a summary each time it runs the task…

So I have a mail server configured and I want cron to send me a summary each time it runs the task…

Am I asking for to much?

No.

Run:

crontab -e

and add this as a first line:

MAILTO="email@my.domain"

This will tell cron that You want it to send You e-mail to the email@my.domain with a summary after each job was ran.

You have to do this for each user – setting up MAILTO parameter for lets say user john will only send You messages for tasks ran by john’s crontab.

Cheers.

Andrzej

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Comments are closed.