SRCDS Steam group


"Screen"
#1
Hi,

Ok, I seem to have to asked the dumb question about "screen"

Is it a prompt or a term??

Do you need to install it, if so where from and where to??

I ask this as it's needed for the "keeping the server from falling down like a drunk" when I Ctrl+c

Thanks for looking.

Oh this is for Linux
Reply
#2
Its an application for linux that detaches the terminal or w/e and opens a new one, so you run the server in the background and you can do other things then open it up again with a simple cmd
Code:
screen -x "name of screen"
for ubuntu
Code:
apt-get install screen
will install it for you
the linux tutorial shows a basic script for using it
Reply
#3
Hi,
I tried a few combinations on this "screen" thingy and atm she's not happySmile

after re-reading the below, I have found it to get abit muddling, bear with it please Smile
First I made this one:
#!/bin/sh
echo "Starting dod:Server4"
sleep 1
screen -A -m -d -S server4 ./srcds_run -console -game dods +map dod_flash +maxplayers 16 -autoupdate

Got message back:
starting dod:server4
sleep: invalid time interval `1\r'
try `sleep --help for more info

Then this one:
#!/bin/sh
echo "starting Dods: Server-4"
screen -A -m -d -S server-4 ./srcds/orangebox/srcds_run -console -game dod -autoupdate -ip *********** -port 27045 +map dod_flash +maxplayers 28 -tickrate 100 +exec server.cfg

Message back after typing screen -x server-4
screen: command not found

Tried: ./server.sh
Came back
:command not found:
starting dod:server4

Ok, so now i changed it again in the server.sh file to :
#!/bin/sh
echo "starting Dods: Server4"
: screen -dmS server4 ./server.sh

typed ./server.sh
command not found:
starting dods: server4

typed screen server4
[screen is terminating]
Now I am in a page with the heading "screen", thought this could be good and launched the game, but in the same situation....have no bash prompt or cannot / don't know how to get back to the other screen.

It seems I have a issue with the server.sh file as it keeps telling me that the screen is not attached or I am in it and can't get out.
Reply
#4
apt-get screen ( i think)
or yum install screen
[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)