From owner-freebsd-questions@FreeBSD.ORG Sun May 28 12:53:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 EEC0416A55C for ; Sun, 28 May 2006 12:53:28 +0000 (UTC) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 692B443D46 for ; Sun, 28 May 2006 12:53:26 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 71DFF99938D; Sun, 28 May 2006 14:53:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at example.com Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ol9gBPiCX-mj; Sun, 28 May 2006 14:53:14 +0200 (CEST) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) by server.t-hosting.hu (Postfix) with ESMTP id 2A670999319; Sun, 28 May 2006 14:53:14 +0200 (CEST) Message-ID: <44799D31.6090400@t-hosting.hu> Date: Sun, 28 May 2006 14:53:05 +0200 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Grant Peel References: <00d601c68254$b814c330$6501a8c0@grant> In-Reply-To: <00d601c68254$b814c330$6501a8c0@grant> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: 2>&1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2006 12:53:31 -0000 Grant Peel wrote: > Hi all, > > When using cron, I understand the >/dev/null thing OK, but what > exactly does >2&1 do? Is it usefull anywhere else? Where might one > find ducumentation on it? > > -Grant > The standard stream stdout has the assigned number 1, and the stderr has number 2. The >/dev/null redirects stdout to /dev/null and 2>&1 means redirecting stderr to stdout, so it goes to /dev/null as well. Gabor Kovesdan