SRCDS Steam group


screen command & sh file don't work
#1
Hi,

I've installed a Counter-Strike: Source server on my Linux server, with this tutorial: http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920&archive=

When I run srcds_run, my server starts and I can connect, so that's OK.
But when I enter this command: "screen -x css-server", it says "There is no screen to be attached matching css-server." and nothing happens!

I've made the server.sh file, but when I try to run .sh-files, I get this error: ": bad interpreter: No such file or directory".

The "screen"-thingy is installed.
I'm in the right directory when I try to execute the server.sh file.
The server.sh matches the one on the tutorial.
Yes, the #!/bin/sh line is correct, I use /bin/sh.
Yes, server.sh is in the same directory of srcds_run.

Can someone help me out here?

Thanks in advance,
Sneraul
Reply
#2
Just use screen -x As long as you only have one screen running it should show you the css server if not I think it shows a list of running screens.
Reply
#3
How are you trying to run the server.sh file. For my launch script I have to run it like this
Code:
$./server.sh
Reply
#4
You would normally see that error if that particular shell isn't a) installed on your system or b) in the place you specified (both of which seem unlikely with a vanilla install). You can verify its existance by typing: "ls /bin/sh" and seeing if it returns "/bin/sh".

Change the first line of your script to !#/bin/bash and see if you have any success.
[Image: hamsig1.jpg]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)