PDA

View Full Version : Linux ded. server as background proces.


Jointzzzz
05-12-2004, 07:04 AM
Hi, a question : how can i bring back the console when the server is running in the background ?

commands like 'fg' do'n't seem to work.

OldandSlow
05-20-2004, 09:36 PM
try "fg %1" - this is supposed to bring the first background job into the foreground.

These problems are the reason I use "screen" to control the dedicated server:

/usr/bin/screen -A -m -d -S cod ./cod_lnxded <other server parameters>

This puts the server (named "cod") in the background. To get it back, type: screen -r cod

To put it back into background, type: <CNTL>a<CNTL>d
(hold down the control key and press the "a" and "d" keys)

When it is in background, you can log out & leave it running. You can log back in and pull it into FG again - works really slick.

jdwright
05-21-2004, 01:42 AM
screen is definately the way to go.

Jointzzzz
05-26-2004, 09:25 AM
great ! thx 4 the reply, I will try this 1 :)