如何使用nohup运行命令,以便同时将stdout和stderr保存到nohup.out中?默认情况下,只有stdout被保存,而stderr被丢弃。
nohup
nohup.out
1>&2
试一下这个
nohup 2>&1 Ex.exe &
1>&2
命令。 - tripleee