Cron sends mail after finishing job. How to turn off that?

Alexander Dalloz alexander.dalloz at
Mon May 31 13:48:24 UTC 2004

Am Mo, den 31.05.2004 schrieb Kevac Marko um 15:19:

> I have a job which is started every 5 minutes. After every job user 
> postfix receive a mail with subject: Cron <root at rknight> 
> /home/ffsearch/ > /dev/null.
> Mailbox is fullfiled with like messages.
> What can i do?

There are 2 ways:

1) su - root -c "crontab -e"
    put in the crontab:
/home/ffsearch/ > /dev/null

If ffsearch is a user and you script has not to be run as root, then
create the cronjob for the user with something like:
su - ffsearch -c "crontab -e"
For solution 1) delete the entry in /etc/crontab.

2) Modify the entry in /etc/crontab to be:
/home/ffsearch/ > /dev/null 2>1&

I prefer to not put everything in /etc/crontab but to use user crontab
files which are stored in /var/spool/cron/. Or placing jobs with the
proper syntax in /etc/cron.d/.


Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.5-1.358 
Serendipity 15:40:50 up 16:34, 10 users, 0.27, 0.10, 0.04 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <>

More information about the fedora-list mailing list