Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 12:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[H]Ich nix können Shell :(

Discussion on [H]Ich nix können Shell :( within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
deltous'fabius's Avatar
 
elite*gold: 84
Join Date: May 2013
Posts: 478
Received Thanks: 234
[H]Ich nix können Shell :(

Hallo Elitepvpers,

ich habe mal nebenbei versucht ein paar .sh's zu bearbeiten, aber irgendwie kommt mir das Spanisch vor.

Also sind ungefähr so 100 Zeilen Shell Code für ein Logs lösch und Backup Script.
Ist doch nicht normal oder.

Hier mal der Code

PHP Code:
#!/bin/sh
echo "Alle Logs werden gelöscht."
cd /usr/home/game/m2_datenbank && rm -f PTS &
cd /usr/home/game/m2_datenbank && rm -f syserr &
cd /usr/home/game/m2_datenbank && rm -f syslog &
sleep 2
cd 
/usr/home/game/m2_login && rm -f PTS &
cd /usr/home/game/m2_login && rm -f syserr &
cd /usr/home/game/m2_login && rm -f syslog &
sleep 2
cd 
/usr/home/game/m2_channel/channel1/core1 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core1 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core1 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel1/core2 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core2 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core2 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel1/core3 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core3 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core3 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel1/core4 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core4 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core4 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel1/core5 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core5 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core5 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel1/core6 && rm -f PTS &
cd /usr/home/game/m2_channel/channel1/core6 && rm -f syserr &
cd /usr/home/game/m2_channel/channel1/core6 && rm -f syslog    &
sleep 2
cd 
/usr/home/game/m2_channel/channel2/core1 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core1 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core1 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel2/core2 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core2 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core2 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel2/core3 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core3 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core3 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel2/core4 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core4 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core4 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel2/core5 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core5 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core5 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel2/core6 && rm -f PTS &
cd /usr/home/game/m2_channel/channel2/core6 && rm -f syserr &
cd /usr/home/game/m2_channel/channel2/core6 && rm -f syslog    &
sleep 2
cd 
/usr/home/game/m2_channel/channel3/core1 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core1 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core1 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel3/core2 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core2 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core2 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel3/core3 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core3 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core3 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel3/core4 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core4 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core4 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel3/core5 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core5 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core5 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel3/core6 && rm -f PTS &
cd /usr/home/game/m2_channel/channel3/core6 && rm -f syserr &
cd /usr/home/game/m2_channel/channel3/core6 && rm -f syslog    &
sleep 2
cd 
/usr/home/game/m2_channel/channel4/core1 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core1 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core1 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel4/core2 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core2 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core2 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel4/core3 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core3 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core3 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel4/core4 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core4 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core4 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel4/core5 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core5 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core5 && rm -f syslog    &
cd /usr/home/game/m2_channel/channel4/core6 && rm -f PTS &
cd /usr/home/game/m2_channel/channel4/core6 && rm -f syserr &
cd /usr/home/game/m2_channel/channel4/core6 && rm -f syslog    &
sleep 2
cd 
/usr/home/game/m2_game99/core1 && rm -f PTS &
cd /usr/home/game/m2_game99/core1 && rm -f syserr &
cd /usr/home/game/m2_game99/core1 && rm -f syslog &
cd /usr/home/game/m2_game99/core2 && rm -f PTS &
cd /usr/home/game/m2_game99/core2 && rm -f syserr &
cd /usr/home/game/m2_game99/core2 && rm -f syslog &
cd /usr/home/game/m2_game99/core3 && rm -f PTS &
cd /usr/home/game/m2_game99/core3 && rm -f syserr &
cd /usr/home/game/m2_game99/core3 && rm -f syslog &
cd /usr/home/game/m2_game99/core4 && rm -f PTS &
cd /usr/home/game/m2_game99/core4 && rm -f syserr &
cd /usr/home/game/m2_game99/core4 && rm -f syslog &
cd /usr/home/game/m2_game99/core5 && rm -f PTS &
cd /usr/home/game/m2_game99/core5 && rm -f syserr &
cd /usr/home/game/m2_game99/core5 && rm -f syslog &
cd /usr/home/game/m2_game99/core6 && rm -f PTS &
cd /usr/home/game/m2_game99/core6 && rm -f syserr &
cd /usr/home/game/m2_game99/core6 && rm -f syslog &
sleep 2
echo "Alle Logs erfolgreich gelöscht."
echo "Erstelle Sicherung von -Game & -MySQL"
cd /usr/home/game/m2_sicherrung
mkdir 
`date +%d.%m.%y-%R`
cd `date +%d.%m.%y-%R`
sleep 2
tar cfzv game
.tar.gz /usr/home/game 
sleep 2
tar cfzv mysql
.tar.gz /var/db/mysql
sleep 2
echo "Sicherrung erfolgreich erstellt." 
Hoffe jemand kann mir den komprimiert zurückschicken und mir weiter helfen.

Regards
.Wolowitz
deltous'fabius is offline  
Old 07/21/2013, 16:26   #2
 
Lauling's Avatar
 
elite*gold: 315
Join Date: Jun 2012
Posts: 5,158
Received Thanks: 4,813
was sollte denn da falsch sein ? kommt irgendein error ?
Lauling is offline  
Old 07/21/2013, 16:35   #3


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
Es geht ihm um die Länge des Scripts.
#SoNiice is offline  
Thanks
1 User
Old 07/21/2013, 17:28   #4
 
Lauling's Avatar
 
elite*gold: 315
Join Date: Jun 2012
Posts: 5,158
Received Thanks: 4,813
machst es über die clear_logs.sh

PHP Code:
#!/bin/sh
echo "Alle Logs werden gelöscht."
cd /usr/home/game/m2_datenbank && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_login && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel1/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel2/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel3/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel4/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_game99/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core6 && sh clear_logs.sh
sleep 2
echo "Alle Logs erfolgreich gelöscht."
echo "Erstelle Sicherung von -Game & -MySQL"
cd /usr/home/game/m2_sicherrung
mkdir 
`date +%d.%m.%y-%R`
cd `date +%d.%m.%y-%R`
sleep 2
tar cfzv game
.tar.gz /usr/home/game 
sleep 2
tar cfzv mysql
.tar.gz /var/db/mysql
sleep 2
echo "Sicherrung erfolgreich erstellt." 
somit wäre die shell datei etwas kürzer, dafür wird jedoch diese datei in jedem einzelenen core ordner benötigt:

clear_logs.sh
PHP Code:
rm -rf log/*
rm -rf packet_info.txt
rm -rf syserr
rm -rf syslog
rm -rf stdout
rm -rf PTS
rm -rf p2p_packet_info.txt 
mfg
Lauling is offline  
Thanks
1 User
Old 07/21/2013, 22:05   #5
 
deltous'fabius's Avatar
 
elite*gold: 84
Join Date: May 2013
Posts: 478
Received Thanks: 234
Quote:
Originally Posted by Lauling View Post
machst es über die clear_logs.sh

PHP Code:
#!/bin/sh
echo "Alle Logs werden gelöscht."
cd /usr/home/game/m2_datenbank && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_login && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel1/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel1/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel2/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel2/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel3/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel3/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_channel/channel4/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_channel/channel4/core6 && sh clear_logs.sh
sleep 2
cd 
/usr/home/game/m2_game99/core1 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core2 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core3 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core4 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core5 && sh clear_logs.sh
cd 
/usr/home/game/m2_game99/core6 && sh clear_logs.sh
sleep 2
echo "Alle Logs erfolgreich gelöscht."
echo "Erstelle Sicherung von -Game & -MySQL"
cd /usr/home/game/m2_sicherrung
mkdir 
`date +%d.%m.%y-%R`
cd `date +%d.%m.%y-%R`
sleep 2
tar cfzv game
.tar.gz /usr/home/game 
sleep 2
tar cfzv mysql
.tar.gz /var/db/mysql
sleep 2
echo "Sicherrung erfolgreich erstellt." 
somit wäre die shell datei etwas kürzer, dafür wird jedoch diese datei in jedem einzelenen core ordner benötigt:

clear_logs.sh
PHP Code:
rm -rf log/*
rm -rf packet_info.txt
rm -rf syserr
rm -rf syslog
rm -rf stdout
rm -rf PTS
rm -rf p2p_packet_info.txt 
mfg
Danke dafür schonmal. Gibt es nicht noch eine kürzere Lösung?
Das ist mir immer noch zu lang.

Regards
.Wolowitz
deltous'fabius is offline  
Old 07/21/2013, 22:17   #6

 
fabian1233's Avatar
 
elite*gold: 273
Join Date: Aug 2010
Posts: 539
Received Thanks: 266
Ähm erstell ne leere datei mit windows.
Jetzt kopier den code da rein und speicher sie als del.sh
Kopiers auf deinen server unter /usr
Jetzt must du nurnoch in die bash "sh /usr/del.sh" eingeben und alles wird automatisch gemacht
fabian1233 is offline  
Thanks
1 User
Old 07/21/2013, 22:18   #7
 
Uepsilon's Avatar
 
elite*gold: 2
Join Date: Jan 2008
Posts: 933
Received Thanks: 130
Jetzt mal ganz dumm gefragt: Warum ist dir das zu lang?
Uepsilon is offline  
Old 07/22/2013, 03:09   #8
 
.CHJonas's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 269
Received Thanks: 125
In deine Start.sh:

PHP Code:
./clear.sh > /dev/null 2>&
Clear.sh:

.CHJonas is offline  
Reply


Similar Threads Similar Threads
Suche Leute die gut mit GFX umgehen können und dazu noch Trailer machen können
02/11/2012 - elite*gold Trading - 4 Replies
Ja, solche Leute suche ich ;D Wenn es geht, kostenlos
Re:Shell
10/30/2011 - S4 League Trading - 7 Replies
exchange puppy+7 used illimitated for laser cat +7 used illimitated.PLS!!!!!;)
Shell.dat =)
08/27/2009 - EO PServer Hosting - 3 Replies
hey everyone xD is there any possibility someone could upload their shell.dat from the database for me?? please not on megaupload. thanks everyone :)
Help with shell.ini
12/22/2008 - EO PServer Hosting - 7 Replies
Anyone got an auto IP aupdater for Shell.ini file to make server non hamachi?:confused:
Silkroad Shell Shell
01/16/2006 - Silkroad Online - 23 Replies
I've found a new Silkroad bot, but the bot is in Chinese/Korean, so we need help to translate it and get it work... Download



All times are GMT +2. The time now is 12:21.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.