how do I cron mailing me the output of the job?

Roger McCalman roger at
Wed Dec 6 08:51:34 GMT 2000

On Wed, Dec 06, 2000 at 08:20:50AM -0000, Simon Clayton wrote:
> I have a cron job which runs a shell script every 15 
> mins throughout the day.  
> The problem is that every 15 minutes I get an e-mail 
> showing me the output from the job which doesn't 
> contain anything meaningful and I don't want to see.
> So, how do I stop the output being sent to me?

Either change the script not to generate any output or redirect the output to /dev/null
assuming a bourne like shell i.e.

*/15 * * * * ( script1; script2 ) > /dev/null 2>&1

Cheers, Roger

More information about the Ukfreebsd mailing list