Thank you. I will try it definitely later today. In fact, in the meantime, I did a listener script to accompany the sender script (I had two terminals open to work RCON). It is bash, automatically opens logaddress and removes it, also I got to know how to terminate only the NC subprocess (Ctrl+4).
I will post it later when I get my laptop back. Whisperity. 2011/9/27 Michael Ziegler <[email protected]> > On 09/25/2011 12:56 PM, Michael Ziegler wrote: > >> I don't know python very well. I don't want to ask you to do the > >> code for me, but can you help me with some google keywords to get this > >> rolling? > > > > You'd basically need two threads, one that reads stdin and runs the > > commands you enter, and one that listens on the UDP port and prints the > > logs it receives. Apart from that, it's simple socket stuff. > > > > It should be fairly easy to do using srcdspy[1]. > > I've hacked up a little script that does just that, and it seems to work > pretty well so far. > > https://bitbucket.org/Svedrin/misc/src/tip/py/rconsh/ > > Obviously, logging needs to be enabled for it to work; but it takes care > of the logaddress_{add,del} commands automatically. > > Have fun. :) > > Michael > > -- > Öffentlicher Schlüssel: 48F81543 - Michael Ziegler (Svedrin) > Wo kämen wir denn da hin, wenn jeder nur fragte "Wo kämen wir denn > da hin?", aber niemand ginge, um zu sehen, wohin wir kämen, wenn wir > gingen? (Autor unbekannt) > > _______________________________________________ > 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

