[luau] UNIX Shell Question: Capturing stdout & showing too

Rick Chavez chavez at hawaii.rr.com
Mon Aug 5 21:44:01 PDT 2002


Try piping to the "tee" command.

  foo | tee outfile

This will send the output to STDOUT (your screen) and the file specified
(outfile in this case).


-Rick

aeg-inc at hawaii.rr.com wrote:

> Aloha-
>
> how would I capture stdout to a file while still getting messages written
> to screen?
>
> e.g. command foo will write things like 'Processing x of y' to terminal. To
>
> put that stuff into a log i'd go:
>      foo > log.txt
>
> but i want to eat the cake too, so how can i modify 'foo > log.txt' to also
>
> write out to command line screen?
>
> probably an easy one...




More information about the LUAU mailing list