From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 13:51:12 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 30ED316A4B3 for ; Fri, 10 Oct 2003 13:51:12 -0700 (PDT) Received: from remt29.cluster1.charter.net (remt29.cluster1.charter.net [209.225.8.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 683E643FAF for ; Fri, 10 Oct 2003 13:51:11 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt29.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 20049678; Fri, 10 Oct 2003 16:51:09 -0400 From: "Charles Howse" To: "'Max Clark'" , Date: Fri, 10 Oct 2003 15:51:03 -0500 Message-ID: <002701c38f70$383173e0$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20031010202755.GA74202@beast.clarksys.com> 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 20:51:12 -0000 > What is the proper way to redirect output to /dev/null? I've=20 > been using the following in my crontab but output is still=20 > ending up in my mailbox. >=20 > ... 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 =20