MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
Need a shell script!
|
Need a shell script!
|
Posts: 4
Threads: 2
Joined: May 2011
Reputation:
0
I need to be able to run these three servers using these commands:
screen -A -m -d -S css-server taskset -c 1 ./srcds_run -console -game cstrike +map de_inferno -maxplayers 10 -autoupdate +fps_max 500 +tv_enable -port 27012
screen -A -m -d -S css-serverclimb taskset -c 1 ./srcds_run -console -game cstrike +map xc_future -maxplayers 16 -autoupdate +fps_max 500 -port 27013
screen -A -m -d -S css-serverfun taskset -c 0 ./srcds_run -console -game cstrike +map deathrun_tribute_final -maxplayers 26 -autoupdate +fps_max 500 +tv_enable -port 27011
The directory are different, i.e for the first server the directory is : /home/shared/match/srcds_l/orangebox
The second directory is:
/home/shared/funserver/orangebox
The third directory is:
/home/shared/climb/orangebox
Need this all in .sh file so it runs each server..
Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
just add the location before the srcds_run, eg:
screen -A -m -d -S css-serverfun taskset -c 0 /home/shared/climb/./srcds_run -console -game cstrike +map deathrun_tribute_final -maxplayers 26 -autoupdate +fps_max 500 +tv_enable -port 27011
Posts: 4
Threads: 2
Joined: May 2011
Reputation:
0
Ohhh... I have to do /./?
Posts: 779
Threads: 5
Joined: Apr 2008
Reputation:
9
06-18-2011, 07:17 AM
(This post was last modified: 06-18-2011, 06:03 PM by Arjen.)
Maybe this will help:
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin <Check pls
DIR=/home/shared/funserver/orangebox <Check pls
PARAMETERS="-console -game cstrike +map de_inferno -maxplayers 10 -autoupdate +fps_max 500 +tv_enable -port 27012"
PROC="css-serverfun"
case "$1" in
start)
if [[ `ps -ef | grep $PROC` ]]
then
echo "Can't start $PROC. Status: online"
else
if [ -e $DIR ];
then
cd $DIR
screen -A -m -d -S $PROC taskset -c 0 ./srcds_run $PARAMETERS
else
echo "$DIR doesn't exist"
fi
;;
stop)
if [[ `ps -ef | grep $PROC` ]]
then
echo "Killing $PROC"
kill -9 `ps -ef |grep $PROC |awk '{print $2}'`
else
echo "$PROC is OFFLINE"
fi
;;
*)
echo "Start with parameters: $0 {start|stop}"
exit 1
;;
esac
exit 0
Maybe some little typo's: start the script ./<name> start after you did a chmod +x <name> to the script
Google around for more scripting or ask here
Warning Level: 0%
|
Users browsing this thread: 1 Guest(s)