Keep processes running after SSH session disconnects
Nohup
1 | nohup <command> [args] & |
&will disable theSIGINTinterruption done byCtrl + C.nohupwill disable theSIGHUPinterruption done by closing the session.
We should see this msg after typing the command.
1 | appending output to nohup.out |
Kill Nohup process
1 | ps -aux | grep "<command program>" |
ashow all processushow by userxshow all process from all terminals
Then you can kill the precess with the PID number.
1 | kill -9 <PID> |
Reference
https://unix.stackexchange.com/questions/479/keep-processes-running-after-ssh-session-disconnects
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





