Adaugare CH.

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

Nou Venit
Mesaje: 20
Membru din: 27 Dec 2014, 13:17
Server: metin2puma
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 0
Medalii

Salut !
As vrea sa ami explice cineva cu pot porni 2 ch-uri pe sv,eu am acolo cand intru in client dar nu pot porni decat pe ch1,spunet-imi cum trebuie sa fac va rog.
Multumesc
Avatar utilizator
M.Seby
Utilizator interzis !

Utilizator interzis !
Mesaje: 2685
Membru din: 10 Sep 2013, 15:00
Server: Not Found
Regat: Jinno
Aprecieri: 0
Mulţumiri: 16  
 Contact:
Medalii

DACA CAUTAI IN FORUM GASEAI. Multumiri lui
DaRealPain

!!! Fa intai la al tau sh start.sh un BackUp !!!

Si asigurate ca ai in /home/game doua canale
Daca nu, nu are ce porni ^_^

sh start.sh

Cod: Selectaţi tot

#!/bin/sh


echo -e "\033[31m 
Facut de DaRealPain ^_^  \n
Cate canale vrei sa pornesti? \n 
1 - (1) Canal 1\n 
2 - (2) Canal 1 si 2\n
3 - (3) Toate Canalele\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 Canal 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
echo -e "\33 [31m \n Se porneste CH2 
..\033[0m"
cd ../ ../channel2/
./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"
3*)
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
[ Mesaj scris via Android ] Imagine
Imagine
Afișează semnătura
Avatar utilizator
krbytttt
Nou Venit

Nou Venit
Mesaje: 20
Membru din: 27 Dec 2014, 13:17
Server: metin2puma
Regat: Chunjo
Aprecieri: 0
Mulţumiri: 0
Medalii

start.sh: 76: Syntax error: ")" unexpected (expecting ";;") da erroare asta si nu porneste ch2 de ce ?
Închis
Răspunsuri
1
Vizualizări
167
Răspunsuri
4
Vizualizări
259
Răspunsuri
6
Vizualizări
416
Răspunsuri
2
Vizualizări
234

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

  • Informaţie
  • Cine este conectat

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