From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Platt Newsgroups: gmane.os.tru64.managers Subject: How does one Stop cron from mailing to the user? Date: Mon, 02 Sep 2002 12:25:02 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9BA03E3B8AD2D311801B00508B92D2B018BD3A@MAIL> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1030983825 11687 127.0.0.1 (2 Sep 2002 16:23:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2002 16:23:45 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17ltzL-00032E-00 for ; Mon, 02 Sep 2002 18:23:43 +0200 Original-Received: (qmail 5378 invoked by uid 5); 2 Sep 2002 16:25:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5369 invoked by uid 49493); 2 Sep 2002 16:25:13 -0000 Original-Received: from Bruce@ei3.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. Clear:. Processed in 0.402973 secs); 02 Sep 2002 16:25:13 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 2 Sep 2002 16:25:12 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1T00M6JK9ZT2@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 12:25:12 -0400 (EDT) Original-Received: from erehwon.ei3.com (erehwon.ei3.com [12.162.98.25]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H1T00147K9R3R@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 02 Sep 2002 12:25:04 -0400 (EDT) Original-Received: from watchdog.ei3.com by erehwon.ei3.com via smtpd (for ornl.gov [160.91.4.118]) with SMTP; Mon, 02 Sep 2002 16:25:03 +0000 (UT) Original-Received: from mail.ei3corp.com (mail.ei3.com [192.168.1.11]) by watchdog.ei3.com (8.11.6/8.11.6) with ESMTP id g82GOci09518 for ; Mon, 02 Sep 2002 12:24:38 -0400 Original-Received: by MAIL with Internet Mail Service (5.5.2653.19) id ; Mon, 02 Sep 2002 12:25:03 -0400 Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:1551 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1551 When a user has an entry in their crontab, a mail message is sent to that user each time the job runs. I can set an alias of the form "user: /dev/null" in the aliases file, but I just want to stop cron from sending the message on job completion, not to stop all mail to the user. Setting MAILTO=/dev/null in the crontab doesn't work. Using the alias file also results in cluttering up the mail log. I could, of course, set up a "phantom" user to run the cron job, so that the real user gets non-cron mail, but I'd like the "perfect solution", i.e., having cron not send mail on job completion. Any suggestions appreciated. I will summarize. Regards