Home » Home Server » Stop cron email notifications
Home Server

Stop cron email notifications

I recently setup my first cron activity to run daily. But I started getting output of the execution. This although at the beginning reassured me that everything fine has become an annoyance recently since I know its working well. So this is what I did to stop cron email notifications.

sudo nano -w /etc/cron.daily/dailyjob

Add “> /dev/null 2>&1” at the end of the command. This redirects the output to /dev/null, which means we do not care to see the output.

command > /dev/null 2>&1

Save and exit. Thats it. This should those annoying (at least to me) daily output emails.

About the author

Anand

Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, XBMC, and related HOW-TOs (read more).

Archives

Join the other 110,000 followers