Redirect nohup's stderr to nohup.out

Timmmm picture Timmmm · Oct 10, 2012 · Viewed 12.4k times · Source

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.

Answer

Akhil Thayyil picture Akhil Thayyil · Oct 11, 2012

Try this

nohup 2>&1 Ex.exe &