From owner-freebsd-questions Wed Nov 6 7:34:24 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 0AE5C37B401 for ; Wed, 6 Nov 2002 07:34:23 -0800 (PST) Received: from grillolja.cs.umu.se (grillolja.cs.umu.se [130.239.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8060F43E4A for ; Wed, 6 Nov 2002 07:34:21 -0800 (PST) (envelope-from tdv94ped@cs.umu.se) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 8EF01A006; Wed, 6 Nov 2002 16:34:18 +0100 (MET) Received: from kvist.cs.umu.se (kvist.cs.umu.se [130.239.40.192]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by grillolja.cs.umu.se (Postfix) with ESMTP id 1155DA003; Wed, 6 Nov 2002 16:34:13 +0100 (MET) Date: Wed, 6 Nov 2002 16:34:12 +0100 (MET) From: Paul Everlund To: "Paul A. Scott" Cc: Kent Stewart , mike , Subject: Re: simple question In-Reply-To: <200211061527.HAA74592@the-frontier.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new amavisd-new-20020630 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 Wed, 6 Nov 2002, Paul A. Scott wrote: > 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 Just a shot in the dark, but how about... # script tarout tar -xvzf ports.tar.gz & ...? Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message