serveroffer.lt forum


Linux - keep program running after you close SSH terminal

Tutorials thread

Linux - keep program running after you close SSH terminal

Postby serveroffer » 2016 Aug 12, 07:57

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
User avatar
serveroffer
Site Admin
 
Posts: 49
Joined: 2012 Jun 16, 18:31

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests

cron