How to use tee with stdout and stderr? - The UNIX and Linux Forums
for showing and redirecting at the same time, you can use:
./program 2>&1 | tee program.log
in the file program.log, the statement stores stdout and stderr as well.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)