I would like to direct:
- Standard out to file.
- Standard error to the same file.
- Standard error to console (as well as file).
I've seen this kind of thing:
mycommand 2>&1 | tee test.txt
But it shows standard out on the console where I only want to see errors.
Any help would be appreciated.