08-31-2008, 11:38 AM
Hi there,
I would like to be able to launch multiple servers using a shell script file. Here is what I came up with:
When I try and launch, it says that it cannot find the directories listed.
Any help is greatly appreciated.
Signing off,
Swatmajor1
I would like to be able to launch multiple servers using a shell script file. Here is what I came up with:
Code:
#!/bin/sh
echo "Starting TF2 Server"
sleep 1
cd tf2/orangebox
screen -A -m -d -S tf2-server ./srcds_run -console -game tf +ip 119.63.204.26 +maxplayers 14 +map ctf_2fort
cd ../..
echo "Starting CSS Server"
cd css
screen -A -m -d -S css-server ./srcds_run -console -game cstrike +ip 119.63.204.26 +maxplayers 32 +map de_dust2
cd ../..
echo "Starting DoDS Server"
cd dods/orangebox
screen -A -m -d -S dods-server ./srcds_run -console -game dod +ip 119.63.204.26 +port 27016 +maxplayers 16 +map dod_flash -tickrate 66
cd ../..
echo "Starting RO Server"
cd ro/system
screen -A -m -d -S ro-server ./ucc-bin server RO-Konigsplatz.rom?game=ROEngine.ROTeamGame?MinPlayers=10? -multihome=119.63.204.26 -log=ServerLog.log --nohomedir &
cd ../..
When I try and launch, it says that it cannot find the directories listed.
Any help is greatly appreciated.
Signing off,
Swatmajor1