2

The reason I'm asking is under certain conditions I would like to change the email addresses that cron sends email to.

For example I have database of who is on vacation so I would like to remove their email address from cron.

seems only way to do this is to restart cron with -m argument each day, as people come and go on vacation each day.

1 Answer 1

6

How are you using cron -m? Are you passing it a script that sends mail to a group of people? If so, why not just put

MAILTO=cron-people

in your crontab, and define cron-people as a mail alias? Then you can just update that alias as necessary.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .