Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to disable crontab mail notification for one of my task...

I run this task every minute, that means 1440 mail per day :S

Can someone tell me if this is possible and how can I do this?

share|improve this question
up vote 6 down vote accepted

You just have to make sure that your task does not produce any output.

If it is a single command add ">/dev/null 2>&1" (without the quotes) to your command.

share|improve this answer
Or if the application behaves properly and only writes to stderr when there is a real error, you can use ">/dev/null" to get mailed in case of errors only. (Unfortunately, many applications write lots of irrelevant stuff to stderr...) – JanC Oct 22 '10 at 15:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.