Results 1 to 3 of 3
hi, i am using a ssh client to make a game server start up etc. It is working and all that but i wanted to know how can i make ...
- 12-13-2006 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
ssh - game server
hi, i am using a ssh client to make a game server start up etc. It is working and all that but i wanted to know how can i make the server stay on even when i close the ssh. The server is running on a seperate box in the us can anyone please help?
thanks.
ps, sorry if this has been answered before
- 12-13-2006 #2Short answer: yes.
Originally Posted by stozy10
Long answer: there are 2 ways this can be done. Firstly background the server by adding an & at the end of the command to start it. eg. to run an application called "foo" run:
the second way is to install a neat little program called screen. With this, you can "detatch" the current terminal session to reconnect whenever you want.Code:foo &
First install screen from here or from your distributions package manager. (this is on the game server). Then ssh into the game server and start a screen session
Then start the game server in your normal way.Code:screen
Then to detatch the screen session hit ctrl+a then release them and then press d. This will detatch the screen session so you can then log out of the ssh server. The advantage this has is that you can see any terminal output in the screen session when you reconnect, and the reconnect can happen from ANYWHERE you can ssh into the game server from."I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 12-14-2006 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
thanks so much
.... that worked perfectly.
69.60.118.124:27960
if anyone wants a game


Reply With Quote