Hi,
I tried a few combinations on this "screen" thingy and atm she's not happy
after re-reading the below, I have found it to get abit muddling, bear with it please
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.