TOP FIVE TOOLS TO KEEP REMOTE SSH SESSIONS AND PROCESSES RUNNING AFTER DISCONNECTION IN 2022
1. Screen
GNU Screen is a terminal multiplexer, a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate login sessions inside a single terminal window, or detach and reattach sessions from a terminal
For more information: https://linux.die.net/man/1/screen
2. Tmux
tmux is an open-source terminal multiplexer for Unix-like operating systems. It allows multiple terminal sessions to be accessed simultaneously in a single window.
For more information:http://man.openbsd.org/OpenBSD-current/man1/tmux.1
3. Nohup
nohup is a POSIX command which means "no hang up". Its purpose is to execute a command such that it ignores the HUP (hangup) signal and therefore does not stop when the user logs out.
For more information: https://en.wikipedia.org/wiki/Nohup
4. Disown
The disown command in Linux is used to remove jobs from the job table. You can also use it to keep a longer and more complex job running in the background even after you log out of the server.
For more information: https://en.wikipedia.org/wiki/Disown_(Unix)
5. Setsid
setsid command in Linux system is used to run a program in a new session. The command will call the fork(2) if already a process group leader. Else, it will execute a program in the current process.
For more information: https://man7.org/linux/man-pages/man1/setsid.1.html
For Python & Shell Scripting Tutorials: https://payhip.com/b/247HD
Comments
Post a Comment