浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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.
posted on 2012-04-23 00:27  lexus  阅读(177)  评论(0)    收藏  举报