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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@rknight> 
> /home/ffsearch/online_check.pl > /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:
MAILTO=""
/home/ffsearch/online_check.pl > /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/online_check.pl > /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


-- 
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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux