why it is behaving like this?exim -d -bt adres@domain |& tee exim-test.out
This can only be answered if you specify exim [...] 1>1.out 2>2.out
it
.
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 thecommand.
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)。