From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 14:26:31 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 3BF9716A4B3 for ; Fri, 10 Oct 2003 14:26:31 -0700 (PDT) Received: from remt28.cluster1.charter.net (remt28.cluster1.charter.net [209.225.8.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 685E543FA3 for ; Fri, 10 Oct 2003 14:26:30 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt28.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 22595999; Fri, 10 Oct 2003 17:26:29 -0400 From: "Charles Howse" To: "'Max Clark'" , Date: Fri, 10 Oct 2003 16:26:16 -0500 Message-ID: <000101c38f75$24190170$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <002701c38f70$383173e0$04fea8c0@moe> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: Redirect to /dev/null X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 21:26:31 -0000 > > What is the proper way to redirect output to /dev/null? I've > > been using the following in my crontab but output is still > > ending up in my mailbox. > > > > ... 2>&1 > /dev/null > > The ampersand preceeds the greater-than symbol, and you > redirect STDOUT > to /dev/null, and then redirect STDERR to STDOUT. > > ... > /dev/null 2&>1 Whooops! Sorry... It should be: ... > /dev/null 2>&1 The the greater-than symbol preceeds the ampersand . I was too quick on the trigger!