Keep processes running after SSH session disconnects
Nohup
1 | nohup <command> [args] & |
&
will disable theSIGINT
interruption done byCtrl + C
.nohup
will disable theSIGHUP
interruption 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>" |
a
show all processu
show by userx
show 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 in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment