copying standard input to standard output

David Kirchner dpk at
Sun Nov 13 06:24:33 GMT 2005

On 11/12/05, Noah <admin2 at> 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 pipping 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.

More information about the freebsd-questions mailing list