remote control

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

remote control

Postby Cinquero » Wed Feb 21, 2007 3:51 pm

hello!

I want to control my nexuiz server remotely, preferably using a perl script. Is that possible? Attach to the server console via UDP?
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby Cinquero » Wed Feb 21, 2007 3:55 pm

http://search.cpan.org/~achen/POE-Compo ... 23/Rcon.pm

At a first glance, that looks quite nice. Any other recommendations?
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby Psychcf » Wed Feb 21, 2007 5:20 pm

xqf? webmin plugin?
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby Cinquero » Wed Feb 21, 2007 6:17 pm

[TSA] Psychiccyberfreak wrote:xqf? webmin plugin?


Not really. I need at least to control my server from the command line. Unfortunately, the CPAN rcon module does not seem to work with nexuiz.
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby KadaverJack » Wed Feb 21, 2007 8:44 pm

Cinquero wrote:Not really. I need at least to control my server from the command line. Unfortunately, the CPAN rcon module does not seem to work with nexuiz.

Probably because Nexuiz uses qw-style rcno, not the q3 protocoll.
However divVerent wrote a wrapper in ruby, that enables other applications to connect via unix socket amongst other things.
If you want to code something yourself in ruby, here's a quick'n'dirty sample how rcon works in Nexuiz: http://kadaverjack.planetnexuiz.de/tmp/rcon.zip
Last edited by KadaverJack on Sat Jul 07, 2007 1:35 am, edited 2 times in total.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Cinquero » Thu Feb 22, 2007 1:13 am

thx!
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby Cinquero » Thu Feb 22, 2007 12:50 pm

is it possible that one cannot pipe the entire result of "cvarlist" though rcon? Is that a server-side issue? Possibly related to MTU/UDP?
Cinquero
Advanced member
 
Posts: 91
Joined: Wed Jul 19, 2006 11:13 pm

Postby Psychcf » Thu Feb 22, 2007 6:19 pm

most of the time I just use VNC, even though the server is in my basement, it's cold down there and I don't feel like standing for so long :lol:
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Thu Feb 22, 2007 6:55 pm

Cinquero wrote:is it possible that one cannot pipe the entire result of "cvarlist" though rcon? Is that a server-side issue? Possibly related to MTU/UDP?

rcon works with single UDP packets, which may not exceed 65.527 bytes. When I save the output of cvarlist to a file, it's about 81kb, so so it clearly won't fit into an UDP package...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby esteel » Thu Feb 22, 2007 7:09 pm

Well if you are the only one administering that server (and if its running on linux) you can also just use the program 'screen' for this. Its like vnc for text mode programs.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Next

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron