Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 18:25:17 +0100 (CET)
From:      Svein Halvor Halvorsen <svein-freebsd-questions@theloosingend.net>
To:        questions@freebsd.org
Subject:   Re: crontab email
Message-ID:  <20040304182311.V26851@mirrorball.theloosingend.net>
In-Reply-To: <BAY15-DAV4647LNeGgi00011e30@hotmail.com>
References:  <BAY15-DAV4647LNeGgi00011e30@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[Brian Henning, 2004-03-04]
>  Everytime something runs from the the crontab for a given user such as root, I
>  get an email with the results of the execution. I am running a few crontabs that
>  run every 2 minutes and this gets to be a lot of excess email. How can I turn
>  off this feature.

You only get mail if the script produces any output. Put a >/dev/null at
the end of the commandline, and you will only get mail when something is
written to stderr, not stdout.


Svein Halvor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304182311.V26851>