34k al meu citeste .txt nu sql.....

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
uzyy2011
Nivel 1

Nivel 1
Mesaje: 135
Membru din: 12 Aug 2013, 17:57
Aprecieri: 0
Mulţumiri: 0
Medalii

Deci stiu ca imi trebuie lib notxt am bagat .. Imi puteti modifica si mie start.sh in cat sa ruleze fara probleme ?

Cod: Selectaţi tot

#!/bin/sh
echo -e "\033[32m  
1 - (1) Pornesc CH1 \n
2 - (2) Pornesc CH2 \n
3 - (3) Pornesc CH3 \n
4 - (4) Pornesc CH4 \n 
5 - (5) Copileaza Questurile \n 
6 - (6) Anuleaza Actiunea! \033[0m"

read chs

case $chs in 
1*) 

	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/db
	./db &
	sleep 2
	clear
	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/auth
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/Canale/Canalul1/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul1/corul2
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/Canale/Canalul99/corul1
	./game &
	sleep 2
	clear
;;
2*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/auth
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/db
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/Canale/Canalul1/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul1/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul2/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul2/corul2
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/Canale/Canalul99/corul1
	./game &
	sleep 2
	clear
;;
3*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/auth
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/db
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/Canale/Canalul1/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul1/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul2/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul2/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul3/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul3/corul2
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"	
	cd /usr/home/game/Canale/Canalul99/corul1
	./game &
	sleep 2
	clear
;;
4*)

	echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/auth
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
	cd /usr/home/game/Canale/BazaDate/db
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
	cd /usr/home/game/Canale/Canalul1/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul1/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul2/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul2/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul3/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul3/corul2
	./game &
	sleep 2
	echo -e "\033[31m \n PORNESC CHANNEL4_2CORE...\033[0m"
	cd /usr/home/game/Canale/Canalul4/corul1
	./game &
	sleep 2
	cd /usr/home/game/Canale/Canalul4/corul2
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m" 
	cd /usr/home/game/Canale/Canalul99/corul1
	./game &
	sleep 2
	clear
;;	
	5*)
		cd /usr/home/game/share/locale/romania/quest &&
		python compile.py
		sleep 1
		echo -e "\033[31m Questurile au fost copilate!\033[0m"
		cd ..
;;
6*)
clear
	echo -e "\033[32m \n Actiune Anulata!\033[0m"
;;
esac
Imagine
Afișează semnătura
Avatar utilizator
Emil2d
Nivel 3

Nivel 3
Mesaje: 429
Membru din: 07 Feb 2015, 06:22
Server: -interzis-.com
Regat: Chunjo
Aprecieri: 6  
Mulţumiri: 41  
 Contact:
Medalii

Salut , Nu umblu cu mysql , deci iti voi da doar niste idei cum .
http://just4metin.ro/viewtopic.php?t=28733&p=224579

Deci incearca sa faci o copie de rezerva la start.sh , si dupa pornirea la db(baza de date , nu conteaza spatiile doar dai paste cu ele acolo dupa linea " pornire baza de date" ) pui acele coduri .
Ps daca nu reusesti :) imprumuta din alt sv file , cum ar fii Cryptex start.sh si doar modifici locatia la foldere :)
Imagine
Imagine
Afișează semnătura
Avatar utilizator
F. Gabriel
Membru Club

Membru Club
Mesaje: 3759
Membru din: 17 Aug 2013, 20:44
Server: -
Regat: Shinsoo
Aprecieri: 358  
Mulţumiri: 84  
 Contact:
Medalii

Gasesti lib-urile aici si aici.

Adauga in start.sh dupa fiecare ch
&& env LD_PRELOAD=/usr/home/game/share/libdb_notxt.so
dupa
cd ./g1/db && env LD_PRELOAD=/usr/home/game/share/libdb_notxt.so ./db &

nemodificat
cd ./g1/db/ && ./db &
Imagine

Hosting Metin2 by OVINETWORK.RO
Afișează semnătura
Avatar utilizator
C.Mihai
Nivel 9

Nivel 9
Mesaje: 1875
Membru din: 26 Mai 2014, 13:57
Server: xGamer
Regat: Chunjo
Aprecieri: 24  
Mulţumiri: 7  
 Contact:
Medalii

Subiect INACTIV De mai bine de 3 zile !
Arhivat :-h !
Nu iti poti trai viata pentru altii. Trebuie sa faci ceea ce e bine pentru tine, chiar daca astfel ii ranesti pe cei pe care ii iubesti. – Nicholas Sparks
Imagine
Cea mai bună firmă de HOSTING !
Afișează semnătura
Închis
Răspunsuri
8
Vizualizări
711
Răspunsuri
3
Vizualizări
540
Răspunsuri
3
Vizualizări
248

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 69 vizitatori