sh start.sh

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
pavelsmecher21
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 07 Dec 2013, 20:55
Server: Dark Fight
Regat: Jinno
Aprecieri: 29  
Mulţumiri: 2  
Medalii

#!/bin/sh
echo -e "\033[32m
1 - (1) CH1 \n
2 - (2) CH2 \n
3 - (3) CH3 \n
4 - (4) CH4 \n
5 - (5) Anuleaza Actiunea! \033[0m"
echo -e "\033[36m Server facut de A1s! \033[0m"
read chs

case $chs in
1*)

echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/server/db_auth/db/
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/server/db_auth/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/server/ch1/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch1/core_2/
./core_2 &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/server/game/game99/
./game99 &
sleep 2
clear
echo -e "\033[36m Server facut de A1s \033[0m"
;;
2*)

echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/server/db_auth/db/
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/server/db_auth/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/server/ch1/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch1/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/server/ch2/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch2/core_2/
./core_2 &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/server/game/game99/
./game99 &
sleep 2
clear
echo -e "\033[36m Server facut de A1s \033[0m"
;;
3*)

echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/server/db_auth/db/
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/server/db_auth/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/server/ch1/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch1/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/server/ch2/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch2/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
cd /usr/home/game/server/ch3/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch3/core_2/
./core_2 &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/server/game/game99/
./game99 &
sleep 2
clear
echo -e "\033[36m Server Facut de A1s \033[0m"
;;
4*)

echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/server/db_auth/db/
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/server/db_auth/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/server/ch1/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch1/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/server/ch2/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch2/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
cd /usr/home/game/server/ch3/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch3/core_2/
./core_2 &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL4_2CORE...\033[0m"
cd /usr/home/game/server/ch4/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch4/core_2/
./core_2 &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/server/game/game99/
./game99 &
sleep 2
clear
;;
5*)
clear
echo -e "\033[32m \n Actiune Anulata!\033[0m"
;;
esac



Cum fac sa aleaga automat 1?
sa porneasca direct ch1?
Avatar utilizator
DarkTobi
Nivel 5

Nivel 5
Mesaje: 846
Membru din: 19 Apr 2016, 14:31
Server: NU JOC
Aprecieri: 16  
Mulţumiri: 197  
Medalii

Nu ai cum
Hacking
Afișează semnătura
Avatar utilizator
pavelsmecher21
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 07 Dec 2013, 20:55
Server: Dark Fight
Regat: Jinno
Aprecieri: 29  
Mulţumiri: 2  
Medalii

Eu vreau sa nu mai apara
echo -e "\033[32m
1 - (1) CH1 \n
2 - (2) CH2 \n
3 - (3) CH3 \n
4 - (4) CH4 \n
5 - (5) Anuleaza Actiunea! \033[0m"
echo -e "\033[36m Server facut de A1s! \033[0m"
read chs

sa porneasca direct doar ch1
Avatar utilizator
Clawders
Nivel 2

Nivel 2
Mesaje: 267
Membru din: 31 Iul 2016, 18:58
Server: Am unul full bug
Regat: Jinno
Aprecieri: 168  
Mulţumiri: 364  
Medalii

Salut, stergi tot din start.sh si adaugi asta.
#!/bin/sh
echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/server/db_auth/db/
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/server/db_auth/auth/
./auth &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/server/ch1/core_1/
./core_1 &
sleep 2
cd /usr/home/game/server/ch1/core_2/
./core_2 &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/server/game/game99/
./game99 &
sleep 2
clear
echo -e "\033[36m Server facut de A1s \033[0m"
;;
Cu placere ;)
Avatar utilizator
pavelsmecher21
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 07 Dec 2013, 20:55
Server: Dark Fight
Regat: Jinno
Aprecieri: 29  
Mulţumiri: 2  
Medalii

Imagineimagehost

Nu merge :|
Avatar utilizator
Clawders
Nivel 2

Nivel 2
Mesaje: 267
Membru din: 31 Iul 2016, 18:58
Server: Am unul full bug
Regat: Jinno
Aprecieri: 168  
Mulţumiri: 364  
Medalii

Pai frate, vrei sa-ti dau mura-n gura? Eu ti-am facut sa porneasca automat fara sa mai selectezi canalele, vezi ca e gresita calea, adica , unde e /usr/home/game/bla bla bla, tu vezi locatia unde ai tu.. si modifici cu locatia corecta, eu nu am de unde sa ghicesc ce locatie ai tu la fisiere, eu l-am testat pe server-ul meu si tin sa te anunt ca merge 100% .
Avatar utilizator
r_tw1x1
Membru Club

Membru Club
Mesaje: 2278
Membru din: 06 Mar 2015, 18:33
Server: Nirvana3
Regat: Jinno
Aprecieri: 228  
Mulţumiri: 3790  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

#Răspuns primit. Subiect marcat ca fiind rezolvat. Topic închis!
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
5
Vizualizări
417
Răspunsuri
3
Vizualizări
173
Răspunsuri
0
Vizualizări
261

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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