On Mon, 30 Apr 2007, tsuehpsyde wrote:

> --
> [ Picked text/plain from multipart/alternative ]
> Hmm. I never thought about it that way, but I assume that would work. =)
> Very good idea! Let us know if it works out. I may start doing that myself
> to sync up more often outside of my nightly 4 server sync. Be sure to add
> the ip bans as well!
>
> -tsue
>

Well, it appears server.cfg *isn't* executed at every map change. I've got
a working solution to my problem, though, thanks to kkrcon
(kkrcon.sourceforge.net). This may be like using your left hand to scratch
your right ear, but:

1. I've mounted the hlds_l directory of the DoD machine on the TFC machine
and visa versa.

2. My script for the TFC machine:

#!/bin/sh
# Prep a listing of bans for the OTHER server
cat /usr/local/games/hlds_l/tfc/listip.cfg
>/usr/local/games/hlds_l/tfc/tfcbans.txt
cat /usr/local/games/hlds_l/tfc/banned.cfg
>>/usr/local/games/hlds_l/tfc/tfcbans.txt
# Get the listing of bans from the mounted directory
# of the OTHER server
cp -f /mnt/dod_server/dod/dodbans.txt
/usr/local/games/hlds_l/tfc/dodbans.cfg
# Use kkrcon to execute the bans and write to the files
kkrcon.pl -a my.tfcserver.com mypassword exec dodbans.cfg >/dev/null
kkrcon.pl -a my.tfcserver.com mypassword exec writeip >/dev/null
kkrcon.pl -a my.tfcserver.com mypassword exec writeid >/dev/null

And on the other server the 'mirror' of this:

#!/bin/sh
# Prep a listing of bans for the OTHER server
cat /usr/local/games/hlds_l/dod/listip.cfg
>/usr/local/games/hlds_l/dod/dodbans.txt
cat /usr/local/games/hlds_l/dod/banned.cfg
>>/usr/local/games/hlds_l/dod/dodbans.txt
# Get the listing of bans from the mounted directory
# of the OTHER server
cp -f /mnt/tfc_server/tfc/tfcbans.txt
/usr/local/games/hlds_l/dod/tfcbans.cfg
# Use kkrcon to execute the bans and write to the files
kkrcon.pl -a my.dodserver.com mypassword exec tfcbans.cfg >/dev/null
kkrcon.pl -a my.dodserver.com mypassword exec writeip >/dev/null
kkrcon.pl -a my.dodserver.com mypassword exec writeid >/dev/null

Seems to work!

"Insane" Husayn


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to