特务(tee usage)
导读:for showing and redirecting at the same time, you can use:...
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.
创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!