Thread: GunGame SQL
View Single Post
alexinno
Senior Member
Join Date: Mar 2007
Location: C:\
Old 03-06-2010 , 01:49   Re: GunGame SQL
Reply With Quote #49

thank you Krim // Relgam.com for the php script, maybe you'll update it for new gungame plugin
also i wanned to say that you can use this to update mysql table periodically with a cronjob on linux if you run a web server on the same machine where the gungame server is runing
Example: create a file , i named ggupdate.sh , i chmoded it to be executable (chmod +x ggupdate.sh) and write this lines in it
Code:
/bin/cp -rf /home/games/gungame/cstrike/gungame.txt /home/web/public_html/ 
chown web:apache /home/web/public_html/gungame.txt 
php -q /root/cronjobs/gungame_update.php
the gungame_update.php is the php script posted by Krim // Relgam.com
after this add the cronjob, edit crontab:
Code:
crontab -e
add a line to run this script , i'm runing it every 15 min
Code:
*/15 * * * * /root/cronjobs/ggupdate.sh >/dev/null 2>&1
i'm runing this cronjob as root , but you can run it as any user you want
__________________

[IMG]http://img188.**************/img188/5787/banner2rcw.png[/IMG]

Last edited by alexinno; 03-06-2010 at 01:57.
alexinno is offline