如何使用 nohup
运行命令,以便 stdout 和 stderr 都保存到 nohup.out
?默认情况下只保存 stdout 而丢弃 stderr。
最佳答案
试试这个
nohup 2>&1 Ex.exe &
关于bash - 将 nohup 的标准错误重定向到 nohup.out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12820616/
如何使用 nohup
运行命令,以便 stdout 和 stderr 都保存到 nohup.out
?默认情况下只保存 stdout 而丢弃 stderr。
最佳答案
试试这个
nohup 2>&1 Ex.exe &
关于bash - 将 nohup 的标准错误重定向到 nohup.out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12820616/