i want to call a command in a shell script then redirect stderr to a pipe to tee with stdout still going to the screen.
i tried
Code:
command arguments 2| tee errlog.txt
but it interpritaded 2 as an aditional argument
what woudl i use to get the effect i want