antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
TiiTѳiɳѳ

Existe Algum Script

11 posts in this topic

Existe Algum Script Que execute algum comando que nos queremos na maquina de x em x tempoEu Queria se Houvesse um que de x em x tempo fizesse "sh del"

Share this post


Link to post
Share on other sites
antiblock
Elveron

Alguem sabe editar este script para de x em x tempo ele activar sozinho?

#!/bin/sh##############################################################################!/usr/rancoroso/auth find /usr/rancoroso/auth -name "*.core" -print -exec rm {} ;find /usr/rancoroso/auth -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "stdout" -print -exec rm {} ;find /usr/rancoroso/auth -name "syserr" -print -exec rm {} ;find /usr/rancoroso/auth -name "syslog" -print -exec rm {} ;find /usr/rancoroso/auth -name "pid" -print -exec rm {} ;find /usr/rancoroso/auth -name "PTS" -print -exec rm {} ;find /usr/rancoroso/auth -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/databasefind /usr/rancoroso/database -name "syserr" -print -exec rm {} ;find /usr/rancoroso/database -name "syslog" -print -exec rm {} ;find /usr/rancoroso/database -name "pid" -print -exec rm {} ;find /usr/rancoroso/database -name "PTS" -print -exec rm {} ;find /usr/rancoroso/database -name "usage.txt" -print -exec rm {} ;find /usr/rancoroso/database -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channel/channel1find /usr/rancoroso/channels/channel1 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel2find /usr/rancoroso/channels/channel2 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel3find /usr/rancoroso/channels/channel3 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel3 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel4find /usr/rancoroso/channels/channel4 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel4 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel5find /usr/rancoroso/channels/channel5 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel5 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel6find /usr/rancoroso/channels/channel6 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel6 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel7find /usr/rancoroso/channels/channel7 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel7 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel8find /usr/rancoroso/channels/channel8 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel8 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel9find /usr/rancoroso/channels/channel9 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel9 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel10find /usr/rancoroso/channels/channel10 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel10 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel99find /usr/rancoroso/channels/channel99 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "VERSION.txt" -print -exec rm {} ;sleep 3rm -rf auth/log/* && rm -rf /auth/log/sys.*rm -rf database/log/* && rm -rf /database/log/sys.*rm -rf channels/*/log/* && rm -rf /channels/*/log/sys.*sleep 3echo "Todos os logs do Servidor Foram apagados!"

Share this post


Link to post
Share on other sites

Alguem Sabe Fazer um ficheiro que apague os logs destas directorias:: /Usr/rancoroso/auth/syserr /Usr/rancoroso/auth/syslog /Usr/rancoroso/auth/PTS /Usr/rancoroso/database/syserr/Usr/rancoroso/database/syslog/Usr/rancoroso/database/PTS/Usr/rancoroso/database/usage.txt/Usr/rancoroso/channels/channel1/syserr/Usr/rancoroso/channels/channel1/syslog/Usr/rancoroso/channels/channel1/PTS/Usr/rancoroso/channels/Channel99/syserr/Usr/rancoroso/channels/channel999/syslog/Usr/rancoroso/channels/channel99/PTSFazer um ficheiro com estas directorias e apagar sozinho de x em x tempo se alguem poder ajudar que diga pfv

Share this post


Link to post
Share on other sites

Alguem Sabe Fazer um ficheiro que apague os logs destas directorias::/Usr/rancoroso/auth/syserr/Usr/rancoroso/auth/syslog/Usr/rancoroso/auth/PTS/Usr/rancoroso/database/syserr/Usr/rancoroso/database/syslog/Usr/rancoroso/database/PTS/Usr/rancoroso/database/usage.txt/Usr/rancoroso/channels/channel1/syserr/Usr/rancoroso/channels/channel1/syslog/Usr/rancoroso/channels/channel1/PTS/Usr/rancoroso/channels/Channel99/syserr/Usr/rancoroso/channels/channel999/syslog/Usr/rancoroso/channels/channel99/PTSFazer um ficheiro com estas directorias e apagar sozinho de x em x tempo se alguem poder ajudar que diga pfv

Share this post


Link to post
Share on other sites

Exemplo:

1º - clear_log.sh na Pasta Channel 1:

rm -rf log/*rm -rf syserrrm -rf syslog
Cumprimentos;

BOSS.

Share this post


Link to post
Share on other sites

Exemplo:

1º - clear_log.sh na Pasta Channel 1:

rm -rf log/*rm -rf syserrrm -rf syslog
Cumprimentos;

BOSS.

Não Percebi

Share this post


Link to post
Share on other sites

Cria um ficheiro clear_log.sh na pasta do channel 1 e adiciona isto ao ficheiro:

rm -rf log/*rm -rf syserrrm -rf syslogrm -rf PTS
Cria um igual para todas as pastas em que queres limpar aqueles ficheiros.

Depois é só escrever...

sh clear.sh

E depois ele limpará.

Cumprimentos;

BOSS.

Share this post


Link to post
Share on other sites

Sim Eu Tenho um que faco sh DelMas o Que eu Queria era meter esta aqui em baixo apagar de x em x tempo sozinha mas eu não sei e como adiciono o tempo

#!/bin/sh##############################################################################!/usr/rancoroso/auth find /usr/rancoroso/auth -name "*.core" -print -exec rm {} ;find /usr/rancoroso/auth -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "stdout" -print -exec rm {} ;find /usr/rancoroso/auth -name "syserr" -print -exec rm {} ;find /usr/rancoroso/auth -name "syslog" -print -exec rm {} ;find /usr/rancoroso/auth -name "pid" -print -exec rm {} ;find /usr/rancoroso/auth -name "PTS" -print -exec rm {} ;find /usr/rancoroso/auth -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/auth -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/databasefind /usr/rancoroso/database -name "syserr" -print -exec rm {} ;find /usr/rancoroso/database -name "syslog" -print -exec rm {} ;find /usr/rancoroso/database -name "pid" -print -exec rm {} ;find /usr/rancoroso/database -name "PTS" -print -exec rm {} ;find /usr/rancoroso/database -name "usage.txt" -print -exec rm {} ;find /usr/rancoroso/database -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channel/channel1find /usr/rancoroso/channels/channel1 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel1 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel2find /usr/rancoroso/channels/channel2 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel2 -name "VERSION.txt" -print -exec rm {} ;sleep 3#!/usr/rancoroso/channels/channel99find /usr/rancoroso/channels/channel99 -name "*.core" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "p2p_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "stdout" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "syserr" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "syslog" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "PTS" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "pid" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "udp_packet_info.txt" -print -exec rm {} ;find /usr/rancoroso/channels/channel99 -name "VERSION.txt" -print -exec rm {} ;sleep 3rm -rf auth/log/* && rm -rf /auth/log/sys.*rm -rf database/log/* && rm -rf /database/log/sys.*rm -rf channels/*/log/* && rm -rf /channels/*/log/sys.*sleep 3echo "Todos os logs do Servidor Foram apagados!"

Share this post


Link to post
Share on other sites

Ahh desculpa lá :(

Então não sei :(

É que estar a fazer automaticamente, quando der erro no servidor já não vais ter LOG's.

Cumprimentos;

BOSS.

Share this post


Link to post
Share on other sites

Sim Eu Tenho um que faco sh DelMas o Que eu Queria era meter esta aqui em baixo apagar de x em x tempo sozinha mas eu não sei e como adiciono o tempo

Alguem Ajuda a Meter Este Script Com Tempo Para Activar Automaticamente de x em x tempo??????????????????????????????????

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this