[START.SH]porneste 2 ch

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

Nivel 1
Mesaje: 130
Membru din: 30 Noi 2014, 00:52
Server: Luxury Metin2
Regat: Shinsoo
Aprecieri: 0
Mulţumiri: 0
Medalii

Se pornesc 2 ch chiar daca aleg sa porneasca doar 1. aici e sh.start , ma poate ajuta cineva sal modifice sa inceapa doar un ch cand aleg "1"

Cod: Selectaţi tot

#!/bin/sh


echo -e "\033[31m  
Ce ch-uri vrei sa  pornesti? \n 
1 - (1) CH 1\n 
2 - (2) Toate Ch-urile\033[0m"

read chs

case $chs in 
1*)
	echo -e "\033[31m Se porneste Baza de date..\033[0m"
	cd ./g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd ../auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd ../../channel1/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Ch88 ..\033[0m"
	cd ../game88/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
	cd ../game99/
	./game &
	sleep 2
	clear
	echo -e "\033[32m \n CH1 este pornit!\033[0m"
;;
2*)
	echo -e "\033[31m Se porneste Baza de date ..\033[0m"
	cd ./g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd ../auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd ../../channel1/
	./game &
	sleep 2
	clear
	cd ../game99/
	./game &
	sleep 2
	clear
	cd ../game88/
	./game &
	sleep 2
	clear
	echo -e "\033[32m \n Server a fost pornit cu succes!\033[0m"
;;
esac
Avatar utilizator
123455555
Utilizator interzis !

Utilizator interzis !
Mesaje: 40
Membru din: 09 Feb 2015, 15:38
Aprecieri: 0
Mulţumiri: 0
Medalii

Intri in root in serverinfo.py.. şi schimbi ip-ul de la ch2.. şi o să rămână off.. X_X..
Închis

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

  • Informaţie
  • Cine este conectat

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