I have found a program that does just this, and its very useful, I use it a lot 
for some of my web-based applications that control server stuff, when I don't 
feel like opening steam, etc.

I don't remember where I found it, but you can find the C code on the URL 
listed below, it compiles on both FreeBSD and any variant of Linux with just 
started GCC installed (gcc -o srcds_rcon srcds_rcon.c) will work just fine.

I would assume with minor changes in the include calls, it should compile and 
work just fine on windows machines as well.

This was actually written for srcds too, you don't need the sv_enableoldqueries 
set 1 for this to work, like how you do with a lot of the other ones that are 
out there.

This is the best one I've found.

http://www.computer-core.com/srcds_rcon_c.htm

It was originally found by me via some google search im sure, but I don't 
remember exactly what I was looking for, or what site had this. Give it shot, 
you can specify the password, ip and port in the source or you can just leave 
it default and use the command line options, which is what I do.

-Jason L. Schwab
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of canu
Sent: Friday, September 23, 2005 11:32 AM
To: [email protected]
Subject: AW: [hlds_linux] RE: Mandatory Source engine update later today...

Hello Martin,

You are saying one could send rcon messages to the server... how do you do
that? I mean if hlds is running in the background, how can I send rcon
messages to it? Qstat doesn't have such a function, and I didn't found any
other program which does this.

Regards, moritz

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Martin
Zwickel
Gesendet: Freitag, 23. September 2005 09:36
An: [email protected]
Cc: [EMAIL PROTECTED]; Alfred Reynolds
Betreff: Re: [hlds_linux] RE: Mandatory Source engine update later today...

On Thu, 22 Sep 2005 18:18:15 -0700
"Eric Smith" <[EMAIL PROTECTED]> bubbled:

> The update should be released in about an hour.  You'll know as soon
> as we do it because your server will report that it's out-of-date.

Feature request:
Is it possible to run a given shell-script/program from hlds/srcds when
an update is available?
Something like this line in server config:
update_notify_exec "/usr/bin/send_mail_to_admin.sh"

Would be nice, so a script can send a mail to the admin when a new
update is available or restart the server, send rcon messages to
current players... .

Regards,
Martin


--
MyExcuse:
not enough memory, go get system upgrade

Martin Zwickel <[EMAIL PROTECTED]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to