WildEgo 1,486 Posted November 21, 2012 Boas, cyberianos.Hoje venho postar um script que limpa log's feito pelo João Manuel (.Revo)Files 2010 #!/bin/sh#Limpeza da Tabela Log, levellog e bootlog (são as que têm mais lixo).utilizador="root"senha="password do root"mysqldump -u $utilizador -p$senha --add-drop-table --no-data log | mysql -u $utilizador -p$senha logmysqldump -u $utilizador -p$senha --add-drop-table --no-data levellog | mysql -u $utilizador -p$senha levellogmysqldump -u $utilizador -p$senha --add-drop-table --no-data bootlog | mysql -u $utilizador -p$senha bootlog## em /usr/game deves escrever o diretório onde tens as tuas files. Se mudaste o nome dos Games deves ##escrever /usr/jogo ou outros.find /usr/home/game/channel -name "*.core" -print -exec rm {} \;find /usr/home/game/channel -name "p2p_packet_info.txt" -print -exec rm {} \;find /usr/home/game/channel -name "packet_info.txt" -print -exec rm {} \;find /usr/home/game/channel -name "stdout" -print -exec rm {} \;find /usr/home/game/channel -name "syserr" -print -exec rm {} \;find /usr/home/game/channel -name "syslog" -print -exec rm {} \;find /usr/home/game/channel -name "udp_packet_info.txt" -print -exec rm {} \;find /usr/home/game/channel -name "VERSION.txt" -print -exec rm {} \;find /usr/home/game/game -name "*.core" -print -exec rm {} \;find /usr/home/game/game -name "p2p_packet_info.txt" -print -exec rm {} \;find /usr/home/game/game -name "packet_info.txt" -print -exec rm {} \;find /usr/home/game/game -name "stdout" -print -exec rm {} \;find /usr/home/game/game -name "syserr" -print -exec rm {} \;find /usr/home/game/game -name "syslog" -print -exec rm {} \;find /usr/home/game/game -name "udp_packet_info.txt" -print -exec rm {} \;find /usr/home/game/game -name "VERSION.txt" -print -exec rm {} \;#Apagar os logs por Ch. Se tiverem so um ch, apagam os ch's a mais, neste caso são 3.#Imaginem que têm até ao ch3. Apagam a linha rm -fr /usr/home/game/channel4/log/*#Devem adaptar para as vossas files.rm -fr /usr/home/game/auth/log/*rm -fr /usr/home/game/db/log/*rm -fr /usr/home/game/game99/log/*rm -fr /usr/home/game/channel1/log/*rm -fr /usr/home/game/channel2/log/*rm -fr /usr/home/game/channel3/log/*rm -fr /usr/home/game/channel4/log/*#Mensagem finalecho "Todos os registos do Servidor Foram apagados!"#Script Criado por Joao ManuelFiles 2007#!/bin/sh#Limpeza da Tabela Log.utilizador="root"senha="password do root"mysqldump -u $utilizador -p$senha --add-drop-table --no-data log | mysql -u $utilizador -p$senha log# em /usr/game deves escrever o diretório onde tens as tuas files. Se mudaste o nome dos Games deves ##escrever /usr/jogo ou outros.find /usr/game -name "*.core" -print -exec rm {} \;find /usr/game -name "p2p_packet_info.txt" -print -exec rm {} \;find /usr/game -name "packet_info.txt" -print -exec rm {} \;find /usr/game -name "stdout" -print -exec rm {} \;find /usr/game -name "syserr" -print -exec rm {} \;find /usr/game -name "syslog" -print -exec rm {} \;find /usr/game -name "udp_packet_info.txt" -print -exec rm {} \;find /usr/game -name "VERSION.txt" -print -exec rm {} \;rm -fr /usr/game/all_log/auth/log/*rm -fr /usr/game/all_log/db/log/*rm -fr /usr/game/all_log/first/log/*rm -fr /usr/game/all_log/game1_1/log/*rm -fr /usr/game/all_log/game1_2/log/*rm -fr /usr/game/all_log/game1_3/log/*rm -fr /usr/game/all_log/game2/log/*rm -fr /usr/game/all_log/game61/log/*rm -fr /usr/game/all_log/game99/log/*echo "Todos os registos do Servidor Foram apagados!"#Script Criado por Joao ManuelNão retirem direitos de autor.By: João Manuel 4 รเи√@ℓ, Predator77, Ramz and 1 other reacted to this Share this post Link to post Share on other sites
รเи√@ℓ 90 Posted November 21, 2012 http://cyber-gamers.org/public/style_emoticons/default/451960.gif mais faz um mini tutorial pra min implementar? Share this post Link to post Share on other sites
…Los† 236 Posted November 21, 2012 Obrigado por partilhar continua. Share this post Link to post Share on other sites
яэ∂вэяяý 543 Posted November 21, 2012 Obrigado por partilhares :) http://cyber-gamers.org/public/style_emoticons/default/451960.gif Continua! Cumpz Share this post Link to post Share on other sites
Guest Henrique Oliveira™ Posted November 21, 2012 Obrigado por partilhares :) http://cyber-gamers.org/public/style_emoticons/default/451960.gif Continua! Cumpz Share this post Link to post Share on other sites
Khavro 467 Posted July 17, 2013 http://cyber-gamers.org/public/style_emoticons/default/451960.gif mais faz um mini tutorial pra min implementar? Share this post Link to post Share on other sites
tetecow 2 Posted December 2, 2015 Como instalo isto ? como faço para por esta script a funcionar Share this post Link to post Share on other sites