Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 16:34:12 +0100 (MET)
From:      Paul Everlund <tdv94ped@cs.umu.se>
To:        "Paul A. Scott" <pscott@skycoast.us>
Cc:        Kent Stewart <kstewart@owt.com>, mike <mike@labs.unixhideout.com>, <freebsd-questions@freebsd.org>
Subject:   Re: simple question
Message-ID:  <Pine.GSO.4.44.0211061631140.27882-100000@kvist.cs.umu.se>
In-Reply-To: <200211061527.HAA74592@the-frontier.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 Nov 2002, Paul A. Scott wrote:

> On 11/6/02 1:43 AM, "Kent Stewart" <kstewart@owt.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0211061631140.27882-100000>