Page 1 of 1

Linux - keep program running after you close SSH terminal

Posted: 2016 Aug 12, 07:57
by serveroffer
When you start a program and close SSH terminal (putty or other) window, program closes.
To make in run after you close terminal window you need to install program called screen.
Screen install on Debian systems:

Code: Select all

apt-get install screen

Screen install on Centos systems:

Code: Select all

yum install screen

Once installation is finished, you can run your program using this command:

Code: Select all

screen -AmdS screen_name ./your_command

after that you can close terminal, the program will work