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 [EMAIL PROTECTED] 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...
