stderr not redirected to stdout . By default, both streams are connected to the same device (current screen or terminal).
You can redirect them to different files:
$ command > stdout.log 2> stderr.log
To really redirect stderr to stdout , you must specify:
$ command 2>&1
Frédéric hamidi
source share