Urban Terror Forums: Run Rcon Commands From Linux Console - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Run Rcon Commands From Linux Console Rate Topic: -----

#1 User is offline   KroniK Icon

  •   QA member   
  • Account: kronik
  • Country:
  • Joined: 14-January 11
  • Posts: 305

Posted 27 November 2012 - 03:52 AM

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

#2 User is offline   Derfull Icon

  • Account: derfull
  • Main tag: |U`u|
  • Country:
  • Joined: 28-February 10
  • Posts: 39

Posted 27 November 2012 - 07:20 AM

This can be used

http://community.mov...-Rcon-Messaging

#3 User is offline   ItsMe Icon

  • Account: itsme
  • Main tag: bc`
  • Joined: 28-February 10
  • Posts: 76

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:

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
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942