& tee exim-test.out), but only stdout was ...

问题描述 投票:0回答:1

why it is behaving like this?exim -d -bt adres@domain |& tee exim-test.outThis can only be answered if you specify exim [...] 1>1.out 2>2.outit

, i. e. which shell is used. It may be that
debugging redirect stderr tee exim
1个回答
0
投票
.

How to send both stdout and stderr from exim to one file will work, i. e. . tee is changing the order of lines|&You may be able to avoid the perceived reordering by prepending

to the

command.

2>&1 exim -d -bt adres@domain 2>&1 | tee exim-test.out我在CentOS 7.8上使用exim 4.92.3,我想捕获所有用于测试别名解析的命令的输出 (

),但在终端上只显示了stdout并写入文件。当我用

流是分开的,并按预期记录。如何将 exim 的 stdout 和 stderr 发送到一个文件中,为什么会这样?

stdbuf -oL exim我在CentOS 7.8上使用exim 4.92.3。我想捕获所有用于测试别名解析的命令的输出(exim -d -bt adres@domain)。

© www.soinside.com 2019 - 2024. All rights reserved.