From owner-freebsd-questions Wed Apr 21 4:45:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from askas.co.za (unknown [196.7.216.242]) by hub.freebsd.org (Postfix) with ESMTP id 1069114EA8 for ; Wed, 21 Apr 1999 04:44:46 -0700 (PDT) (envelope-from rudi@askas.co.za) Received: from askas.co.za(mirror[196.7.216.244]) (1712 bytes) by askas.co.za via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Wed, 21 Apr 1999 14:03:00 +0200 (SAST) (Smail-3.2.0.101 1997-Dec-17 #1 built 1998-Mar-22) Message-ID: <371DB989.99A129BE@askas.co.za> Date: Wed, 21 Apr 1999 13:42:01 +0200 From: Rudi Opperman X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.ORG" Subject: help with cron and crontab mail messages Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi I am trying to limit the messages that crontab sends to a user about jobs run under cron. The situation is : I am trying to customise cron to run some afterhours tasks. It seems that you just add the tasks in the specified users crontab file and load it. This is quite simple and works well. However these jobs need to run as root. I checked root's loaded crontab and it was empty - so i added to jobs to /etc/crontab and loaded it. I then recieved mail every five minutes from */5 * * * * root /usr/libexec/atrun This is quite annoying. (12x24 messages a day just from this entry). I see it is possible to turn this off by setting MAILTO="" but then i won't get the mail for my customised tasks. So basically i want mail from my added tasks but not from the others that were already there (in a standard 2.2.8 system). how do i do this ? Moreover why was root's "crontab -u root -l" reporting nothing even though rc.conf has cron_enable="YES"? Does this mean that these jobs were never run or does it mean that they were run in some other user/operator crontab ? tia rudi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message