From owner-freebsd-questions@FreeBSD.ORG Fri Dec 21 17:14:18 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCA2E16A418 for ; Fri, 21 Dec 2007 17:14:18 +0000 (UTC) (envelope-from liettneff@bk.ru) Received: from cny.innet.yaroslavl.su (cny.innet.yaroslavl.su [217.15.134.68]) by mx1.freebsd.org (Postfix) with ESMTP id 0AD1913C44B for ; Fri, 21 Dec 2007 17:14:17 +0000 (UTC) (envelope-from liettneff@bk.ru) Received: from tac.innet.yaroslavl.su (tac.innet.yaroslavl.su [217.15.135.68]) by cny.innet.yaroslavl.su (8.11.6/8.11.6) with ESMTP id lBLHDra54235; Fri, 21 Dec 2007 20:13:53 +0300 (MSK) Received: from reaper.yaroslavl.ru (reaper.yaroslavl.ru [85.113.202.195]) by tac.innet.yaroslavl.su (8.13.7/8.13.7) with ESMTP id lBLHDrij019289; Fri, 21 Dec 2007 20:13:53 +0300 (MSK) Received: from comp-reaper (comp-reaper [10.19.1.3]) by reaper.yaroslavl.ru (Postfix) with ESMTP id AD56F2285A; Fri, 21 Dec 2007 20:13:52 +0300 (MSK) Date: Fri, 21 Dec 2007 20:14:13 +0300 From: Michael Lednev X-Mailer: The Bat! (v3.99.29) Professional Organization: none X-Priority: 3 (Normal) Message-ID: <863400045.20071221201413@bk.ru> To: jhall@vandaliamo.net In-Reply-To: <49254.65.117.48.155.1198256367.squirrel@admintool.trueband.net> References: <51935.12.170.206.13.1198248568.squirrel@admintool.trueband.net> <1044977630.20071221175247@bk.ru> <49254.65.117.48.155.1198256367.squirrel@admintool.trueband.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Redirecting STDOUT X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Lednev List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2007 17:14:18 -0000 Hello, jhall. On 21 ??????? 2007 ?., 19:59:27 you wrote: >> Hello, jhall. >> >> On 21 ??????? 2007 ?., 17:49:28 you wrote: >> >> jvn> tar -cvzf root.tgz /root > /dev/null 2>/home/jay/tarlog >> >> jvn> I'm sure it is something simple I am doing wrong, but I am not seeing >> it. >> >> what is your shell? >> >> -- >> Best regards, >> Michael mailto:liettneff@bk.ru >> >> jvn> /bin/sh In that case you only redirecting STDERR to file. As you've been already told STDOUT will be redirected with $ command 1>file or $ command > file adding 2>&1 will also redirect STDERR to this file -- Best regards, Michael mailto:liettneff@bk.ru