![]() (Note that: If we use tmux detach command: it will exit from tmux session window/terminal without terminating/stopping the tmux sessions)įor more details please refer following article: To see this process(which is kept running in the background) type: tmux attach command. If the connection terminated then how to reconnect it to see the processes running in the tmux session in the background: Now even if SSH terminal is closed/terminated suddenly tmux session will keep running the started lon-running processes on the instance/server. Run the command to start long-running processes in the tmux session.It will open a window in the same terminal. Terminal Multiplexer ( tmux) to start the tmux session: I find tmux is the good solution to avoid termination of processes that we want to run even after the terminal is closed. ![]() But wait if the connection with my SSH terminal is terminated then the long-running processes stop immediately and hence I have to re-run them once again once the ssh terminal is restarted or from a new ssh terminal. Where I have to start SSH terminal and from the terminal, I have to keep the terminal connected to run the process. I have to keep running the long-running processes on a google cloud platform's VM instance/server (with OS: Ubuntu 16.0). Tmux is a good option available to run your long-running processes in the background. for that reason, I always resume with screen -d -r to ensure that if another shell is attached to my screen session, it will be detached before I resume it on my current system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |