command.sh 2 >& 1 | tee command.log - stderr (2) to stdout (1) and both to command.log