Redirect nohup's stderr to nohup.out

爱⌒轻易说出口 提交于 2019-12-04 10:16:26

问题


How do I run a command with nohup so that both the stdout and stderr are saved to nohup.out? By default only stdout is saved and stderr is discarded.


回答1:


Try this

nohup 2>&1 Ex.exe &


来源:https://stackoverflow.com/questions/12820616/redirect-nohups-stderr-to-nohup-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!