Skocz do zawartości

Dołącz do społeczności!

👋 Witaj na MPCForum!

Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

  • ✅ Pełny dostęp do działów i ukrytych treści
  • ✅ Możliwość pisania i odpowiadania w tematach
  • ✅ System prywatnych wiadomości
  • ✅ Zbieranie reputacji i rozwijanie swojego profilu
  • ✅ Członkostwo w jednej z największych społeczności graczy

👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

Zarejestruj się teraz

[Tutorial]Skrypt Do Czyszczenia Logow

Skrypt 15 użytkowników zagłosowało

  1. 1. Czy nowy skrypt jest lepszy ??

Aby zagłosować w tej ankiecie, prosimy się zalogować lub zarejestrować.

Featured Replies

Opublikowano

Przestawiam wam skrypt do czyszczenia logow by me

wiem ze juz bylo ale moj jest lepszy

jesli nie daj - , jesli tak daj +

 

Wlaczamy WinSCP/FileZile

w folderze root(w tym co jestesmy) tworzymy plik o nazwie d

Wklejamy w niego ten skrypt

 

#!/bin/sh

echo ""
echo -e "\033[33m     Wpisz nazwe uzytkownika ( np.\033[0m" "\033[31mrain\033[0m" "\033[33m)\033[0m"

echo -e "\033[34m"
  read pdaf
echo -e "\033[0m"

echo -e "\033[35m     Wpisz numer ch aby usunac logi ( jesli masz tylko ch1 nacisnij enter )\033[0m"

echo -e "\033[34m"
  read chs
echo -e "\033[0m"

rm -fr  /usr/$pdaf/db/log/*
rm -fr  /usr/$pdaf/auth/log/*
rm -fr  /usr/$pdaf/channel$chs/first/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_1/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_2/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_3/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_4/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_5/log/*
rm -fr  /usr/$pdaf/channel$chs/game1_6/log/*

rm /usr/$pdaf/db/stdout > /dev/null 2>&1
rm /usr/$pdaf/db/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/db/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/db/syslog > /dev/null 2>&1
rm /usr/$pdaf/db/syserr > /dev/null 2>&1

rm /usr/$pdaf/auth/stdout > /dev/null 2>&1
rm /usr/$pdaf/auth/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/auth/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/auth/syslog > /dev/null 2>&1
rm /usr/$pdaf/auth/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/first/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/first/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/first/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/first/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/first/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game1_1/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_1/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_1/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_1/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_1/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game1_2/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_2/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_2/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_2/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_2/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game1_3/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_3/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_3/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_3/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game1_3/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game2/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game2/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game2/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game2/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game2/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game61/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game61/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game61/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game61/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game61/syserr > /dev/null 2>&1

rm /usr/$pdaf/channel$chs/game99/stdout > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game99/packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game99/p2p_packet_info.txt > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game99/syslog > /dev/null 2>&1
rm /usr/$pdaf/channel$chs/game99/syserr > /dev/null 2>&1

echo -e "\033[32m     Logi od bazy danych\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/db/log
echo "   wyczysczone syslogi " < /usr/$pdaf/db/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/db/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/db/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od logowanie\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/auth/log
echo "   wyczysczone syslogi " < /usr/$pdaf/auth/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/auth/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/auth/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wyboru postaci\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/first/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/first/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/first/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/first/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od m1 Shinsoo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game1_1/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game1_1/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game1_1/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game1_1/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Chunjo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game1_2/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game1_2/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game1_2/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game1_2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Jino\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game1_3/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game1_3/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game1_3/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game1_3/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od od m2\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game2/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game2/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game2/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od mapki expa\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game61/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game61/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game61/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game61/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wojen gildi\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /usr/$pdaf/channel$chs/game99/log
echo "   wyczysczone syslogi " < /usr/$pdaf/channel$chs/game99/syslog
echo "   wyczysczone syrrer " < /usr/$pdaf/channel$chs/game99/syserr
echo "   wyczysczone PTS " < /usr/$pdaf/channel$chs/game99/PTS
echo -e "\033[0m"

echo -e "\033[36m   Zycze milego grania\033[0m"
echo -e "\033[36m   Skrypt by ziuto !\033[0m"

 

Zapisujemy i nadajemy prawa 0777

Teraz w bazie wystarczy wpisac ./d

Mam nadzieje ze sie wam to przyda

:)

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
  • Autor

sluzy do usuwania logow mniej wiecej sprawia ze serw mniej wazy

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

serwer mniej waży i jest czysty, a co za tym idzie? chodzi szybciej i jest mniej lagów :P

a czy się on różni od zwykłego skryptu ? ziuto ? :P

 

edit..

 

czy jak serwer w pełni jest odpalony i zamiast komendy ./stop a potem szybko logout wpiszę komendę "shutdown -r now"

to normalnie się zamknie i nic się potem z serwerem nie będzie działo co sądzisz ?

aha i może jakiś skrypt jest, że wpisuje np: /stop i automatycznie i bezpiecznie by zamykał się serw. ?

Opublikowano

cos mi sie zdaje ze to moj przerobiony ale i tak + troche przerobiles  jakas tam praca byla :)

Wiem kto jest swój, a kto zwykły pedał
Intel Xeon E5 1650 v2 16GB Ram 1 TB SSD 2x D500 3GB

 

Opublikowano
  • Autor

serwer mniej waży i jest czysty, a co za tym idzie? chodzi szybciej i jest mniej lagów :P

a czy się on różni od zwykłego skryptu ? ziuto ? :P

 

edit..

 

czy jak serwer w pełni jest odpalony i zamiast komendy ./stop a potem szybko logout wpiszę komendę "shutdown -r now"

to normalnie się zamknie i nic się potem z serwerem nie będzie działo co sądzisz ?

aha i może jakiś skrypt jest, że wpisuje np: /stop i automatycznie i bezpiecznie by zamykał się serw. ?

Jest wybor z jakiego ch chczesz usunac logi i pokazuje status usunietych logow i innych rzeczy

jest skrypt na wylaczenie serwa ale ja mam troche inne pliki i ci moj nie zadziala

 

cos mi sie zdaje ze to moj przerobiony ale i tak + troche przerobiles jakas tam praca byla :)

Nie widzialem twojego skryptu ...

dopiero dzisiaj go zobaczylem

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
  • Autor

@Refresh

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

Ty zrobiłeś tylko CTRL+C potem Nowy temat i CTRL+V :) Pozdro... I skoro wiesz, że już było to po co robisz? :>

userbarwb.png

Zawsze promocje na sygnatury ^^

Opublikowano
  • Autor

to daj linka do tuta z takim samym z skryptem jak moj !!

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
jest skrypt na wylaczenie serwa ale ja mam troche inne pliki i ci moj nie zadziala

 

pliki mam nie jakieś raina tylko postawione normalne takie pod dedyki, takie jak pod twojego tuta, może podasz mi skrypta na wyłączanie serwa ?

bo komenda ./close.sh psuje chyba serwa :P

Opublikowano
  • Autor

pliki mam nie jakieś raina tylko postawione normalne takie pod dedyki, takie jak pod twojego tuta, może podasz mi skrypta na wyłączanie serwa ?

bo komenda ./close.sh psuje chyba serwa :P

ale ja mam inne niz pod ten skrypt

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
  • Autor

@Refresh

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
  • Autor

@Refresh

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

na co komu takie cos ?

czyszczenie logow mozna zalatwic jedna maks 2 linijkami a nie 100

rm -rf /sciezka/game/all_log/*/log/*/* && rm -rf /sciezka/game/channel/*/sys*

Opublikowano

Paninax mógłbyś zrobić tutka jak zrobić auto-czyszczenie logów?

Chyba, że dałeś a nie widziałem to sorry :P

 

 

PS: Jesteś chyba 1 z 5 osób najbardziej rozwiniętych umysłowo na tym forum. pzdr

  • 2 tygodnie później...
Opublikowano
  • Autor

@Refresh

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

Czemu wyskakuje mi cannot open i ścieżka, posiadam pliki by paninax zmieniłem ścieżkę z /usr na /server użytkownik wpisuje game i tak wywala że nic nie usunęło ;/

 

A oto jak zmieniłem skrypt:

#!/bin/sh

echo ""
echo -e "\033[33m     Wpisz nazwe uzytkownika ( np.\033[0m" "\033[31mrain\033[0m" "\033[33m)\033[0m"

echo -e "\033[34m"
  read pdaf
echo -e "\033[0m"

echo -e "\033[35m     Wpisz numer ch aby usunac logi ( jesli masz tylko ch1 nacisnij enter )\033[0m"

echo -e "\033[34m"
  read chs
echo -e "\033[0m"

rm -fr  /server/$pdaf/db/log/*
rm -fr  /server/$pdaf/auth/log/*
rm -fr  /server/$pdaf/channel$chs/first/log/*
rm -fr  /server/$pdaf/channel$chs/game1_1/log/*
rm -fr  /server/$pdaf/channel$chs/game1_2/log/*
rm -fr  /server/$pdaf/channel$chs/game1_3/log/*
rm -fr  /server/$pdaf/channel$chs/game1_4/log/*
rm -fr  /server/$pdaf/channel$chs/game1_5/log/*
rm -fr  /server/$pdaf/channel$chs/game1_6/log/*

rm /server/$pdaf/db/stdout > /dev/null 2>&1
rm /server/$pdaf/db/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/db/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/db/syslog > /dev/null 2>&1
rm /server/$pdaf/db/syserr > /dev/null 2>&1

rm /server/$pdaf/auth/stdout > /dev/null 2>&1
rm /server/$pdaf/auth/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/auth/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/auth/syslog > /dev/null 2>&1
rm /server/$pdaf/auth/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/first/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/first/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/first/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/first/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/first/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game1_1/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_1/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_1/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_1/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_1/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game1_2/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_2/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_2/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_2/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_2/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game1_3/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_3/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_3/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_3/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game1_3/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game2/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game2/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game2/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game2/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game2/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game61/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game61/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game61/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game61/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game61/syserr > /dev/null 2>&1

rm /server/$pdaf/channel$chs/game99/stdout > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game99/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game99/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game99/syslog > /dev/null 2>&1
rm /server/$pdaf/channel$chs/game99/syserr > /dev/null 2>&1

echo -e "\033[32m     Logi od bazy danych\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/db/log
echo "   wyczysczone syslogi " < /server/$pdaf/db/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/db/syserr
echo "   wyczysczone PTS " < /server/$pdaf/db/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od logowanie\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/auth/log
echo "   wyczysczone syslogi " < /server/$pdaf/auth/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/auth/syserr
echo "   wyczysczone PTS " < /server/$pdaf/auth/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wyboru postaci\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/first/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/first/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/first/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/first/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od m1 Shinsoo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game1_1/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game1_1/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game1_1/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game1_1/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Chunjo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game1_2/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game1_2/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game1_2/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game1_2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Jino\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game1_3/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game1_3/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game1_3/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game1_3/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od od m2\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game2/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game2/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game2/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od mapki expa\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game61/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game61/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game61/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game61/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wojen gildi\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/channel$chs/game99/log
echo "   wyczysczone syslogi " < /server/$pdaf/channel$chs/game99/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/channel$chs/game99/syserr
echo "   wyczysczone PTS " < /server/$pdaf/channel$chs/game99/PTS
echo -e "\033[0m"

echo -e "\033[36m   Zycze milego grania\033[0m"
echo -e "\033[36m   Skrypt by ziuto !\033[0m"

 

A oto ss z vitualboxa KLIK

Opublikowano
  • Autor

zle wpisalem gdzie masz podac ile ch nacisnij tylko enter

bo jakbys mial np 2ch lub wiecej to by bylo channel1 , channel2 itp

a ty masz tylko channel

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano
  • Autor

ty masz /server/game/channel1/ i tu foldery game

wypisz jakie masz foldery game

pewnie game1_3 , game1_4 itp

jesli tak zmien w skrypcie

z game2 na game1_4

z game61 na game1_5

z game99 na game1_6

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

w channel 1 i 2 nazywają się tak samo:

first

game1_1

game1_2

game1_3

game2

game61

game99

 

 

Chyba wiem co jest, ja mam wszystkie logi w odrębnych folderach 38556533102757769087.jpg

Jutro zmienie skrypt, bo teraz na antybiotykach jestem i mam taka bombę że ledwo siedzę a nie chcę nic popsuć.

Opublikowano
  • Autor

to nie wiem a patrzyles czy kasuje logi bo moze nie masz po prostu tych 2 plikow

wiem ze sa w odrebnych folderach ale ich skroty sa w tych folderach game wiec powinno dzialac ;/

w folderach game powinien byc folder log jesli sie inaczej nazywa zmien nazwe w skrypcie

Edytowane przez ziuto

 

;Script by ziuto
;Source-code Autoit v3
$User = InputBox("Twoj nick", "Podaj swoj nick", "tu go wpisz")
If $User = "ziuto" Then
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Sam sie lubie", 50, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam sobie 5 gwiazdek", 30, 40)
ElseIf $User <> "ziuto" Then
MsgBox(0, "Powitanie", "Siema " & $User)
$gui = GUICreate("User " & $User, 175, 100, -1, -1, 0x00080000)
$button_lubie_cie = GUICtrlCreateButton("Lubie cie ziuto", 47, 10)
$button_dam_ci_5_gwiazdek = GUICtrlCreateButton("Dam ci 5 gwiazdek ziuto", 25, 40)
EndIf
GUISetState(@SW_SHOW, $gui)
While $User = "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie sie", "Sam sie lubie :o")
Case $msg = $button_dam_ci_5_gwiazdek
MsgBox(0, "Dam sobie 5 gwiadek", "Ze bym to ja mogl sam sobie dac")
EndSelect
WEnd
While $User <> "ziuto"
$msg = GUIGetMsg()
Select
Case $msg = -3
ExitLoop
Case $msg = $button_lubie_cie
MsgBox(0, "Lubie cie", "A za co ?")
InputBox("A za co ?", "Za co mnie lubisz ?", "???")
MsgBox(0, "Za to", "Aha" & @CRLF & "Dobrze to wiedziec xD" & @CRLF & "Nq")
ShellExecute("http://www.mpcforum.pl/")
ExitLoop
Case $msg = $button_dam_ci_5_gwiazdek
ShellExecute("http://www.mpcforum.pl/user/259390-ziuto/")
EndSelect
WEnd


Opublikowano

Tak jak się spodziewałem problem polegał na tym że pliki syslog i syserr znajdowały się w folderach all_log_CH1 i CH2

 

Wygląda on tak i działa poprawanie ^^

 

#!/bin/sh

echo ""
echo -e "\033[33m     Wpisz nazwe uzytkownika ( np.\033[0m" "\033[31mgame\033[0m" "\033[33m)\033[0m"

echo -e "\033[34m"
  read pdaf
echo -e "\033[0m"

echo -e "\033[35m     Wpisz numer ch aby usunac logi ( jesli masz tylko ch1 nacisnij enter )\033[0m"

echo -e "\033[34m"
  read chs
echo -e "\033[0m"

rm -fr  /server/$pdaf/db/log/*
rm -fr  /server/$pdaf/auth/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/first/log/*
rm -fr  /server/$pdafall_log_CH$chs/game1_1/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/game1_2/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/game1_3/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/game1_4/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/game1_5/log/*
rm -fr  /server/$pdaf/all_log_CH$chs/game1_6/log/*

rm /server/$pdaf/db/stdout > /dev/null 2>&1
rm /server/$pdaf/db/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/db/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/db/syslog > /dev/null 2>&1
rm /server/$pdaf/db/syserr > /dev/null 2>&1

rm /server/$pdaf/auth/stdout > /dev/null 2>&1
rm /server/$pdaf/auth/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/auth/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/auth/syslog > /dev/null 2>&1
rm /server/$pdaf/auth/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/first/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/first/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/first/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/first/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/first/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game1_1/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_1/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_1/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_1/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_1/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game1_2/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_2/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_2/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_2/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_2/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game1_3/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_3/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_3/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_3/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game1_3/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game2/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game2/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game2/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game2/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game2/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game61/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game61/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game61/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game61/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game61/syserr > /dev/null 2>&1

rm /server/$pdaf/all_log_CH$chs/game99/stdout > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game99/packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game99/p2p_packet_info.txt > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game99/syslog > /dev/null 2>&1
rm /server/$pdaf/all_log_CH$chs/game99/syserr > /dev/null 2>&1

echo -e "\033[32m     Logi od bazy danych\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/db/log
echo "   wyczysczone syslogi " < /server/$pdaf/db/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/db/syserr
echo "   wyczysczone PTS " < /server/$pdaf/db/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od logowanie\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/auth/log
echo "   wyczysczone syslogi " < /server/$pdaf/auth/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/auth/syserr
echo "   wyczysczone PTS " < /server/$pdaf/auth/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wyboru postaci\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/first/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/first/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/first/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/first/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od m1 Shinsoo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game1_1/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game1_1/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game1_1/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game1_1/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Chunjo\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game1_2/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game1_2/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game1_2/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game1_2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od m1 Jino\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game1_3/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game1_3/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game1_3/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game1_3/PTS
echo -e "\033[0m"

echo -e "\033[35m     Nacisnij enter aby zobaczysz status nastepnych logow\033[0m"

echo -e "\033[34m"
  read lol
echo -e "\033[0m"

echo -e "\033[32m     Logi od od m2\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game2/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game2/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game2/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game2/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od mapki expa\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game61/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game61/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game61/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game61/PTS
echo -e "\033[0m"
echo -e "\033[32m     Logi od wojen gildi\033[0m"
echo -e "\033[31m"
echo "          usuniete logi " < /server/$pdaf/all_log_CH$chs/game99/log
echo "   wyczysczone syslogi " < /server/$pdaf/all_log_CH$chs/game99/syslog
echo "   wyczysczone syrrer " < /server/$pdaf/all_log_CH$chs/game99/syserr
echo "   wyczysczone PTS " < /server/$pdaf/all_log_CH$chs/game99/PTS
echo -e "\033[0m"

echo -e "\033[36m   Zycze milego grania\033[0m"
echo -e "\033[36m   Skrypt by ziuto !\033[0m"

  • 2 miesiące temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.