Xonotic Forums
Shell script to execute rcon commands - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: Shell script to execute rcon commands (/showthread.php?tid=4956)



Shell script to execute rcon commands - Melanosuchus - 06-05-2014

I wrote a simple Bash script which executes commands over rcon.
It uses some Bash-specific features so I doubt it'll work on other shells.

Maybe it's useful, maybe it isn't, anyway here it is:
https://gist.github.com/mbasaglia/62d7fef83304f4b3ca90

example usage:
Code:
./rcon.sh -host=localhost:26000 -pw=password -secure=2 -c status 1