Peng Yu
2018-11-15 04:53:19 UTC
Hi,
I'd like to pipe stdout/stderr to a file. But I also want them to be
printed to the terminal with them separately as stdout/stderr.
It seems that none of the things mentioned below can satisfy both
requirements. Could anybody confirm whether it is indeed impossible to
satisfy both requirements? Thanks.
https://stackoverflow.com/questions/363223/how-do-i-get-both-stdout-and-stderr-to-go-to-the-terminal-and-a-log-file
cmd 2>&1 | tee output.file
I'd like to pipe stdout/stderr to a file. But I also want them to be
printed to the terminal with them separately as stdout/stderr.
It seems that none of the things mentioned below can satisfy both
requirements. Could anybody confirm whether it is indeed impossible to
satisfy both requirements? Thanks.
https://stackoverflow.com/questions/363223/how-do-i-get-both-stdout-and-stderr-to-go-to-the-terminal-and-a-log-file
cmd 2>&1 | tee output.file
--
Regards,
Peng
Regards,
Peng