Hey,
and here is a quick'n dirty Python version ^^
It may be nice to include such a lil shell tool in the ioq3 archive,
what do you think?
On 26/06/2013 10:59, uZu wrote:
Hello,
here is a quick and simple Perl script and another one in Bash using
netcat, that should do it ^^
On 26/06/2013 04:17, Daniel Bryan wrote:
Thanks, this is what I needed to know.
It doesn't look like there's a nice simple CLI RCON client, so I might
try to pull out the knowledge from the various PHP tools and put
together a native implementation.
On Tue, Jun 25, 2013 at 2:41 PM, Zachary <zach...@ioquake.org
<mailto:zach...@ioquake.org>> wrote:
Hi Daniel,
Immediately upon executing the dedicated server process you can type
commands into the running shell, be it a screen or whatever.
You can also use rcon ( http://tinyurl.com/rcontools ) to send
commands to the server remotely and use the qstat program to monitor
it remotely (qstat -q3s 127.0.0.1) .
Here's a fairly straightforward server guide:
http://it.rcmd.org/networks/q3_install/q3_linux_server_howto.php
https://www.google.com/search?client=safari&rls=en&q=quake+3+server+guide&ie=UTF-8&oe=UTF-8
I hope that helps,
zjs
On Jun 24, 2013, at 8:33 PM, Daniel Bryan <danbr...@gmail.com
<mailto:danbr...@gmail.com>> wrote:
> Hello,
>
> I've just started a new ioquake3 server. I'm using the packages
provided in Ubuntu 12.04 (Precise). Everything works beautifully; at
present I'm running ioq3ded in a screen session, but soon I'll wrap
it in an Upstart job.
>
> I'd like to know how to administrate the server via its 'console'
while it's running from the server side.
>
> I've seen mentions in the documentation and in help sites about
configuration options of the "TTY". Does ioquake3 provide a terminal
device that I can write commands to? Or is there some other way to
perform operations remotely?
>
> I mainly want to be able to run status in order to see the number
of players online, as well as occasionally to script the addition of
bots, etc.
>
> Thanks,
>
> Daniel
> _______________________________________________
> ioquake3 mailing list
> ioquake3@lists.ioquake.org <mailto:ioquake3@lists.ioquake.org>
> http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
> By sending this message I agree to love ioquake3 and libsdl.
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org <mailto:ioquake3@lists.ioquake.org>
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.
#!/usr/bin/env python
import sys
import socket
import re
servers = [
[ 'cpm', '172.23.37.11', 27960, 'le_rcon_pwd' ],
[ 'vq3', '172.23.37.12', 27960, 'le_rcon_pwd' ]
]
def rcon(nick='', cmd="status"):
for arr in servers:
if arr[0] == nick:
host = arr[1]
port = arr[2]
pswd = arr[3]
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto("\xFF\xFF\xFF\xFFrcon "+pswd+" "+cmd, (host, port))
data = sock.recv(1024)
data = re.sub(r'^....print\r?\n', "", data)
print data
if len(sys.argv) < 2:
print "Usage: "+sys.argv[0]+" <server> [action]"
sys.exit(1)
server = sys.argv[1]
action = "status"
if len(sys.argv) == 3:
action = sys.argv[2]
rcon(server, action)
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.