Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2005 22:24:32 -0800
From:      David Kirchner <dpk@dpk.net>
To:        Noah <admin2@enabled.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: copying standard input to standard output
Message-ID:  <35c231bf0511122224i30f210afs6638e31d01da933d@mail.gmail.com>
In-Reply-To: <20051113052919.M97310@enabled.com>
References:  <20051113052919.M97310@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/12/05, Noah <admin2@enabled.com> wrote:
> Hi there,
>
> I am wanting to copy standard output to a file.
>
> I know that 'tee' will do this fine.
>
> blah | tee it
>
> but I am find that on some occasions processes will not output when pippi=
ng to
> tee.
>
> other than screen what are some applications that could capture standard
> output and dump to a file?

"script" will do exactly that. It'll capture stderr, too.

It may be that the programs you're using are sending to stderr as
Malcolm suggests. It may also be because some programs handle stdout
to a terminal differently than stdout to a file or a pipe.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35c231bf0511122224i30f210afs6638e31d01da933d>