- General POLSKI Topic
- Quake All-stars December 2026 frag night
- how many quake 3 players E+ still play sometimes
- DOOM 2 SERVER - UPDATE
- Quake 3 Weapons Configs Library
- missing graphics in 1++ map
- Steam Q3 Discussion
- xp_enemyHeadModel does not work
- Q3DM3D Duke3d map for Q3
- Help me with selection Defrag maps
shell rcon
5. October 2015 - 16:22
rcon.sh
#!/bin/bash
# settings
host="set ip"
port="27960"
pass="set pass"
timeout="1"
nc="$(which nc6 2>/dev/null || which nc)"
while :; do
echo "=====================================================";
echo "[say], [s], [cp], [status], [map], [serverinfo], [cvarlist], [cmdlist], [exit]";
echo "[fdir *.pk3], [fdir *.bsp], [fdir *.cfg]";
echo "=====================================================";
read -p "rcon@$host: " cmd;
[ "$cmd" == "exit" ] && exit
echo -e "\xff\xff\xff\xffrcon\x20$pass\x20$cmd\x00" | $nc -q $timeout -u $host $port 2>/dev/null | sed -ne ':x;/\xFF/{N;s/\xFF\xFF\xFF\xFFprint\n//;tx};/^$/d;p'
done
