Redirect all output to file

That part is written to stderr, use 2> to redirect it. For example:

foo > stdout.txt 2> stderr.txt

or if you want in same file:

foo > allout.txt 2>&1

Note: this works in (ba)sh, check your shell for proper syntax

posted @ 2015-05-13 15:53  vigorpush  阅读(137)  评论(0编辑  收藏  举报