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

  • Next message: paul: "Re: 200 GB Maxtor drive (48bit LBA) ?"
    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
    


  • Next message: paul: "Re: 200 GB Maxtor drive (48bit LBA) ?"

    Relevant Pages

    • Re: How to add to pkgSkipList...
      ... >>My question is how then do I add an additional entry to pkgSkipList? ... > Don't quote me on this but I believe you have to use the ... things as well) plain command line too: ... Fedora GNU/Linux Core 1 on Athlon CPU kernel 2.4.22-1.2174.nptl ...
      (Fedora)
    • Re: software raid and grub on FC3
      ... You may search bugzilla for an already existing report. ... you may file an entry as an RFE. ... legal statement: http://www.uni-x.org/legal.html Fedora GNU/Linux Core 2 on Athlon kernel 2.6.9-1.6_FC2smp ...
      (Fedora)