From owner-freebsd-questions Sat Aug 18 14:26: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (dav25.law15.hotmail.com [64.4.22.82]) by hub.freebsd.org (Postfix) with ESMTP id CC49937B403 for ; Sat, 18 Aug 2001 14:26:01 -0700 (PDT) (envelope-from want_2_learn_freebsd@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 18 Aug 2001 14:26:01 -0700 X-Originating-IP: [209.144.200.72] From: "doug" To: References: Subject: Re: How to I get a script to run as a daemon? Date: Sat, 18 Aug 2001 14:28:50 -0700 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 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 18 Aug 2001 21:26:01.0760 (UTC) FILETIME=[6134B200:01C1282C] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks Alex! That was the solution I was looking for yesterday--thanks so much! Doug. ----- Original Message ----- From: "Alex Vargas" To: "doug" ; Sent: Saturday, August 18, 2001 2:13 PM Subject: RE: How to I get a script to run as a daemon? > Doug, > > >background. Right now, I have cron run it, but it gives me output every > >single minute by e-mail!! > > Sample cron line with no mail output: > > 0,10,20,30,40,50 * * * * /home/mydir/botchk >/dev/null 2>&1 > > > The key is the ">/dev/null 2>&1" at the end - this will redirect your output > to /dev/null, thus eliminating the > spammed inbox. Hope this helps. > > aV To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message