发布时间:2022-08-09 文章分类:编程知识 投稿人:李佳 字号: 默认 | | 超大 打印

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.