antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
WildEgo

[Script] Limpa Log'S

7 posts in this topic

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 Manuel
Files 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 Manuel
Não retirem direitos de autor.By: João Manuel

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

Como instalo isto ?

como faço para por esta script a funcionar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this