I wrote a little script in python to help with this, and uses the
SRCDS.py file(google it).
My script:
#!/usr/bin/env python
import SRCDS
import sys
if __name__ == "__main__":
args = " ".join(sys.argv[1:])
f = open("/var/rcon/27015", "r")
d = f.read()
f.close()
d = d.split("\n")
s = SRCDS.SRCDS(host=d[0], rconpass=d[1])
print s.rcon_command(args)
Where /var/rcon/27015 is a file that looks like:
*ipaddress*
*password*
Jonass wrote:
> Hello,
> can you send rcon commands when you are logged on SSH to the server?
> Because I don't know command to administrate a server when you are on
> Linux (as HLSW Windows).
> I tried Google but nobody seems to have a good solution.
> Someone has an idea?
> Thank you!
>
> _______________________________________________
> 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