I have been doing this:
make xyz &> xyz.log &; tail -f xyz.log
The problem with this is that you never can ge sure when "make xyz" is done.
How can I pipe both stderr and stdout into tee so both stderr and stdout are copied both to the display and to the log file?
Thanks,
Siegfried
Ygor
2
make xyz 2>&1 | tee xyz.log
for showing and redirecting at the same time, you can use:
./program 2>&1 | tee program.log
in the file program.log, the statement stores stdout and stderr as well.
Ygor
4
There's no need to provide the same answer three years after the question was asked.