Linux: Prevent a background process from being stopped after closing SSH client

You can use the following code to run a process in the background without creating any stdout or stderr output (no nohup.out file)

nohup command > /dev/null 2>&1 &

Back to Top