From owner-freebsd-questions Wed Nov 6 7:27:23 2002 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 A247637B401 for ; Wed, 6 Nov 2002 07:27:21 -0800 (PST) Received: from the-frontier.org (ns1.the-frontier.org [216.86.199.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id C209643E75 for ; Wed, 6 Nov 2002 07:27:20 -0800 (PST) (envelope-from pscott@skycoast.us) Received: from [192.168.66.249] (dhcp-249-66-168-192.the-frontier.org [192.168.66.249]) by the-frontier.org (8.9.3/8.9.3) with ESMTP id HAA74592; Wed, 6 Nov 2002 07:27:10 -0800 (PST) (envelope-from pscott@skycoast.us) Message-Id: <200211061527.HAA74592@the-frontier.org> User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Wed, 06 Nov 2002 07:26:44 -0800 Subject: Re: simple question From: "Paul A. Scott" To: Kent Stewart , mike Cc: In-Reply-To: <3DC8E440.3060902@owt.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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 On 11/6/02 1:43 AM, "Kent Stewart" wrote: >> mike wrote: >> What would i type to >> make the output of that command not show but at the end simply do let me know >> its finished? thanks guys > > tar -xzf ports.tar.gz & > > Turn off the verbose and & to background it. > > Kent That will work unless tar has stderr output (error messages) which might then cause the tar command to suspend, or cause the error messages to appear on the screen, depending upon your stty tostop setting. Also, by turning off the verbose option you won't see the list of files extracted. A better way (IMHO) would be to leave the verbose option on, and capture both stdout and stderr output to a file, while running the whole thing in background. Then when you're notified that the command completed, you can peruse the file to see both the list and any errors. The way to do this depends on the shell you're running. With 'sh' and its derivatives use: tar -xvzf ports.tar.gz >tarlog.txt 2>&1 & With 'csh' and its derivatives use: tar -xvzf ports.tar.gz >& tarlog.txt & When the background command finishes, all the output will be in "tarlog.txt" Hope this helps, Paul A. Scott mailto:pscott@skycoast.us http://skycoast.us/pscott/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message