Hello,
I Would like to have a repeating Bigtext Message on my server. I know there is a way to run console commands from the linux terminal that is running the server, but I have yet to figure out how to do it. Someone suggested using screen to try and run commands but I was unsuccessful at getting screen to launch UrT.
Any help would be wonderful.
KroniK
Advertisement
Page 1 of 1
Run Rcon Commands From Linux Console
#3
Posted 30 November 2012 - 02:01 PM
Hi,
the Quake 3 protocol is quite simple, you can send via console rcon commands to every running server like this:
in a small bash script with you can use a loop to repeat this to your needs.
--
HTH
PS.
<PASSWORD> = your rcon password
<COMMAND> = the comand you wish to send (e.g. status, bigtext, kick, $WHATEVER)
<SERVER_IP> = self-explanatory (is the server running on the same box and listens to all interfaces you can use 127.0.0.1)
<SERVER_PORT> = self-explanatory
the Quake 3 protocol is quite simple, you can send via console rcon commands to every running server like this:
printf '\xFF\xFF\xFF\xFFrcon <PASSWORD> <COMMAND>\n' | nc -u -n -w 1 <SERVER_IP> <SERVER_PORT> | sed -ne ':x;/\xFF/{N;s/\xFF\xFF\xFF\xFFprint\n//;tx};/^$/d;p'
in a small bash script with you can use a loop to repeat this to your needs.
--
HTH
PS.
<PASSWORD> = your rcon password
<COMMAND> = the comand you wish to send (e.g. status, bigtext, kick, $WHATEVER)
<SERVER_IP> = self-explanatory (is the server running on the same box and listens to all interfaces you can use 127.0.0.1)
<SERVER_PORT> = self-explanatory
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement