04-12-2009, 10:43 AM
First, I may be going about this wrong. I have a dedi server that runs Linux and I want the game server to run when I am not connected with Putty.
I created the server.sh to run srcds in the background, but I can not execute it. I create the script in Notepad. Installed the server to /srcds
I created the server.sh to run srcds in the background, but I can not execute it. I create the script in Notepad. Installed the server to /srcds
Code:
#!/bin/sh
echo "Starting Cs:Source Server"
sleep 1
screen -A -m -d -S css-server /srcds/srcds_run -game cstrike -console +ip
x.x.x.x -port 27015 +maxplayers 24 +exec server.cfg +map de_aztec
Code:
root@myserver:~# ls
server.sh srcds
root@myserver:~# chmod +x server.sh
root@myserver:~# server.sh
bash: server.sh: command not found