Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 just setup a cronjob in /var/spool/cron/crontabs/root which is running fine. But when the cron starts I always get an email with following contents:

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

 0     0    0     0    0    28      0  11340 --:--:-- --:--:-- --:--:-- 11340
 0 75 0 75 0 28 8480   3165 --:--:-- --:--:-- --:--:--  7833
{"status": "ok", "jobs": {"mdspider": "e8ce7498dc5e11e0b387b3171f8e7a38"}}

Where can I disable that and enable email transmission only if the cronjob fails?

share|improve this question

migrated from Sep 11 '11 at 19:25

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

Cron will send you any output from your job; it is your task to write a job which doesn't spew spurious output. This looks vaguely like a Python script driving curl or maybe rsync; add a -q option to the script, or redirect its output to /dev/null. But take care to only ditch harmless messages! People tend to throw away error messages, and then wonder why their job fails "silently". A good practice is to log output to a file, and rotate the log file periodically.

share|improve this answer

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.