On Wed, 6 Nov 2002, Paul A. Scott wrote:

> On 11/6/02 1:43 AM, "Kent Stewart" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to