I wrote this a while back: http://nemu.nephyrin.net/cacti/scripts/rcon.py
[...@nemu ~]$ ./rcon.py Usage: ./rcon.py server port password command [...@nemu ~]$ ./rcon.py tf2.nemu.nephyrin.net 27015 maipass stats CPU In Out Uptime Users FPS Players 95.50 81334.34 292744.19 301 3 53.16 32 [...@nemu ~]$ ./rcon.py tf2.nemu.nephyrin.net 27015 maipass stats | grep -Eo "[0-9]+$" 32 Feel free to use it if it'd be useful - Neph On Thu, Nov 20, 2008 at 5:02 AM, <gamead...@127001.org> wrote: > Getting the players is the easy part... It's connecting to the console > programatically and disconnecting again that's hard* > > *Well, on BSD which is running an old version of netcat anyway** > > ** Or you could use a different tool, or perl, or python, or almost anything > else :D > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux