LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem using SCREEN command. Im a NooB. (https://www.linuxquestions.org/questions/linux-software-2/problem-using-screen-command-im-a-noob-416065/)

Scrag 02-16-2006 09:27 AM

Problem using SCREEN command. Im a NooB.
 
Per Counter-strike linux server instructions at http://www.srcds.com/db/engine.php?s...43920&archive=

I start my server with the following script:
Code:


#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 -autoupdate

When I try to attach to the screen with this command:
Code:

screen -x css-server
I get the following error message:
Code:

There is no screen to be attached matching css-server.
Im new to screen and dont know what to do. I used the screen -help but am not sure where to go from here.

Thanks for the help. :)

macemoneta 02-16-2006 11:29 AM

Well, you've started the session detached (the "-d" option), but the "-x" tries to attach "to a not detached screen session" (from the man page).

I suggest you try:

screen -r css-server

The "-r" option reconnects to a disconnected session.


All times are GMT -5. The time now is 04:40 PM.