问题
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