From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 09:09:25 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7ECC37B401 for ; Tue, 8 Jul 2003 09:09:24 -0700 (PDT) Received: from thunderbird.etv.net (thunderbird.etv.net [208.14.190.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 465B543FAF for ; Tue, 8 Jul 2003 09:09:24 -0700 (PDT) (envelope-from efinleywork@efinley.com) Received: from [208.14.190.180] (helo=elliotdevelop) by thunderbird.etv.net with smtp (Exim 4.20) id 19Zv1v-0008Xu-VE; Tue, 08 Jul 2003 10:09:23 -0600 Message-ID: <09f301c3456b$4d029d20$b4be0ed0@elliotdevelop> From: "Elliot Finley" To: "Peter Elsner" References: <087c01c34560$7ed08e80$b4be0ed0@elliotdevelop> <20030708153145.GL87950@dan.emsphone.com> <5.2.0.9.2.20030708105106.01789890@mail.servplex.com> Date: Tue, 8 Jul 2003 10:09:24 -0600 Organization: Emery Telcom MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-questions@FreeBSD.ORG Subject: Re: No output from periodic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Elliot Finley List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 16:09:25 -0000 I really appreciate all the comments, but this isn't quite what I'm after. I _want_ cron to email me when there _is_ output. But I _don't want_ an email when there _isn't_ output. Anyone know how to accomplish this? Elliot ----- Original Message ----- From: "Peter Elsner" To: "Elliot Finley" Cc: Sent: Tuesday, July 08, 2003 9:57 AM Subject: Re: No output from periodic > What you are seeing is an error condition... > You should be able to put a redirect into crontab... > > Here's an example of one of my entries... > It runs every 5 minutes, the dyndnss.pl script and sends > output to /tmp/dyndnss.out AND any error messages (that's the 2>) > to /tmp/dyndnss.err > > This works for me and I don't see any error messages. > In the actual script, if something goes wrong, I have it email me. > So I still get notified if the script fails, but I don't get any warnings > from CRON. > > Hope that works. > > Peter > > > */5 * * * * /cgi/dyndnss.pl >/tmp/dyndnss.out 2>/tmp/dyndnss.err > > > > At 09:41 AM 7/8/2003 -0600, you wrote: > >Yeah, I tried that... Now I just get a blank email from cron. :) > > > >Anyone know how to make cron not send an email when there's no output? > > > >Elliot > > > >----- Original Message ----- > >From: "Dan Nelson" > >To: "Elliot Finley" > >Cc: > >Sent: Tuesday, July 08, 2003 9:31 AM > >Subject: Re: No output from periodic > > > > > > > In the last episode (Jul 08), Elliot Finley said: > > > > I have a periodic that runs every 15 minutes. I have 5 scripts in > > > > the directory that it processes. Most of the time, the 5 scripts > > > > don't have to do anything, and thus don't have any output. When that > > > > happens, periodic outputs 'No output from the 5 files processed'. > > > > > > > > Is there a way to make periodic not output anything so that I don't > > > > get an email from cron every 15 minutes? > > > > > > Commenting out that line in /usr/sbin/periodic seems to be the way to > > > go. > > > > > > -- > > > Dan Nelson > > > dnelson@allantgroup.com > >_______________________________________________ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > Anything below this line, is considered a signature line. > If you do not know what a signature is within an email > STOP here and do not read any further. Thank you. > _________________________________________________________________________ > > Peter Elsner > Vice President Of Customer Service (And System Administrator) > 1835 S. Carrier Parkway > Grand Prairie, Texas 75051 > (972) 263-2080 - Voice > (972) 263-2082 - Fax > (972) 489-4838 - Cell Phone > (425) 988-8061 - eFax > > I worry about my child and the Internet all the time, even though she's > too young to have logged on yet. Here's what I worry about. I worry > that 10 or 15 years from now, she will come to me and say "Daddy, where > were you when they took freedom of the press away from the Internet?" > -- Mike Godwin > > Unix IS user friendly... It's just selective about who its friends are. > > System Administration - It's a dirty job, but somebody said I had to do it. > > If you receive something that says 'Send this to everyone you know, > pretend you don't know me. > > Standard $500/message proofreading fee applies for UCE. > (NOTE: UCE is Unsolicited Commercial Email also known as > SPAM or junk mail). > >