Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # qworld map_rotation.sh
- QUERY=`mysql -ss -umysql -pmysql quakeworld -e "SELECT map_name FROM map_rotation ORDER BY RAND() LIMIT 5;"`
- COUNTER=0
- f1()
- {
- f2(){
- for a in $QUERY ; do
- echo -e "set k_ml_$COUNTER $a"
- let COUNTER=COUNTER+1
- done
- }
- }
- f1
- f2 > /home/quakeworld/qwserver/ktx/map_rotation.cfg
Add Comment
Please, Sign In to add comment