4/22/2024 0 Comments Exit ssh session puttyYou are running a game server which doesn't have a ready-made daemon script to put the process in the background.You can later come back, reattach to the session and see how the compile job has progressed during your absence. If you run the compile in a tmux session, it doesn't get interrupted even if your connection drops or you simply need to log out from the server. If your SSH connection drops unexpectedly after say, 4 hours, the job will be interrupted and you may have to restart from scratch. It is estimated that this job will require at least 8 hours. Furthermore, you can also reattach to such sessions, which lets you see previous output you may have missed in the terminal and reestablishes the ability to interact with the input of programs running there. The ability to keep a session running, even if the user disconnects from it, makes it very useful in some scenarios. Here's a picture of three Bash shells hosted in tmux:Īlthough it's called a multiplexer, tmux can do many other interesting things besides multiplexing terminals. With a terminal multiplexer you can avoid multiple logins, launching as many shell sessions as you need, in a single SSH session. You need to log in through SSH two times: in a window you open a resource monitoring application like "htop" and in another window you enter commands to perform the stress test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |