tee usage

tee usage,第1张

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.

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/2089804.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存