From owner-freebsd-questions Sat Aug 18 14: 5:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id 30E4337B411 for ; Sat, 18 Aug 2001 14:05:48 -0700 (PDT) (envelope-from Exel@SpeakEasy.Net) Received: (qmail 46612 invoked from network); 18 Aug 2001 21:05:47 -0000 Received: from unknown (HELO POWERHOUSE) ([216.27.144.120]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 18 Aug 2001 21:05:47 -0000 From: "Alex Vargas" To: "doug" , Subject: RE: How to I get a script to run as a daemon? Date: Sat, 18 Aug 2001 17:13:20 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal 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 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