I want to output the stdout and stderr in a logfile,
moreover i do want to log stderr also to a separate logfile, and print str to the screen
I searched arround and tried:
$ command 2>&1 > log | tee -a log log.err
But then in log first the stdout appears, and then stderr.