Re: Cron sends mail after finishing job. How to turn off that?
From: Alexander Dalloz (alexander.dalloz_at_uni-bielefeld.de)
Date: 05/31/04
- Previous message: Shaun T. Erickson: "Re: Music Player question"
- In reply to: Kevac Marko: "Cron sends mail after finishing job. How to turn off that?"
- Next in thread: Kevac Marko: "Re: Cron sends mail after finishing job. How to turn off that?"
- Reply: Kevac Marko: "Re: Cron sends mail after finishing job. How to turn off that?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 15:48:24 +0200 To: For users of Fedora Core releases <fedora-list@redhat.com>
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
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- application/pgp-signature attachment: Dies ist ein digital signierter Nachrichtenteil
- Previous message: Shaun T. Erickson: "Re: Music Player question"
- In reply to: Kevac Marko: "Cron sends mail after finishing job. How to turn off that?"
- Next in thread: Kevac Marko: "Re: Cron sends mail after finishing job. How to turn off that?"
- Reply: Kevac Marko: "Re: Cron sends mail after finishing job. How to turn off that?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|