2010-12-18 42 views

回答

2

像這樣:

command > stdout.log 2> stderr.log 

,或者也看到屏幕上的輸出:

(command | tee stdout.log) 3>&1 1>&2 2>&3 | tee stderr.log 
2
some_command > report.txt 2> errorlog.txt 
相關問題