I have a machine that is running CentOs 7.7. I'm trying to access the terminal remotely, and execute a script. Right now I use putty to connect to server via SSH, and type ./run_server.sh
to execute my script. The content of the run_server.sh
file is as follows (extremely simplified):
#!/bin/bash
run_script=(./my_calculator_server)
"${run_script[@]}"
It then starts to execute my calculator server, which can accept two numbers and output their sum (again simplified). The problem is, if I close the Putty program, the script is terminated, so is the session. Even if the script is not terminated, I won't be able to go back to it since running Putty again will open a fresh terminal window. I want to be able to remotely access that session, interact with it and go back to it anytime I want. Is it possible? If so, what are my options?
I'm not asking for step-by-step instructions, only looking to find the ways to do this.
PS: VNC is not an option.
tmux
right now, if it supports resuming the session, it's just what I needed. – Johansson Mar 25 '20 at 10:24screen
for that. Never usedtmux
;-) – pLumo Mar 25 '20 at 10:26