0
votes
0answers
69 views

Redirect Stdout/Stderr but tee only Stderr

I'm struggling to wrap my ahead around the tee/mtee command and redirection to fulfill the following goals: Send stdout and stderr BOTH to a separate file. Show ONLY stderr into the console. The ...
3
votes
1answer
587 views

Linux: redirecting stdout and stderr

I want to write stdout to a file but also prints stdout and stderr. I tried using tee: prog | tee stdout.txt but this causes the printed stderr and stdout to be interleaved incorrectly, i.e. if the ...