PDA

View Full Version : RCON Perl Library


cj_
12-16-2004, 22:35
This is somewhat off-topic, since the forums seem dedicated to SourceMod, but I figured I'd pass it along for anyone that finds it useful. (If there's a better forum, feel free to move this post).

I wrote a perl module to interface with Source engine's rcon, you can find it here (http://gruntle.org/projects/hl2/Rcon-HL2-0.02.tar.gz). Latest version is also attached.

Example usage:

use Rcon::HL2;
my $rcon = Rcon::HL2->new(
hostname => "insub.org",
password => "yourpass",
);

$rcon->run("status");
print $rcon->response();

$rcon->run("changelevel de_dust");

BAILOPAN
12-17-2004, 00:21
Nicely done, I can see this being useful :)

cj_
12-17-2004, 04:27
Small update to fix some quoting issues (seems SAP admin plugin does not like if passed quoted args).

http://www.gruntle.org/projects/hl2/Rcon-HL2-0.03.tar.gz

PhyRo
12-05-2009, 23:17
Great :D just what i was looking for :D

blik
12-08-2009, 09:57
Wow. 5 year thread resurrection :O

Keeper
12-08-2009, 10:30
That's the great thing about this site. It has lots of good material that might be old, but is still useful :)