Problema sh start.sh

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Avatar utilizator
K3RN3L
Utilizator interzis !

Utilizator interzis !
Mesaje: 597
Membru din: 01 Feb 2017, 18:44
Server: N-am
Regat: Chunjo
Aprecieri: 106  
Mulţumiri: 141  
Medalii

Cod: Selectaţi tot

#!/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 Copyright @ 2016-2017 ! \033[0m"
read chs

case $chs in 
1*) 
   echo -e "\033[31m (Server): Fix - Offline Shop\033[0m"
   cd /usr/home/game/server/db_auth/db
   sleep 5
   clear
   echo -e "\033[31m (Server): Deschid - DATABASES \033[0m"
   cd /usr/home/game/server/db_auth/db
   ./db &
   sleep 5
   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
   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 Copyright @ 2015! \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 Copyright @ 2015! \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 Copyright @ 2015! \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
Incearca acuma
Avatar utilizator
Marius011
Nivel 1

Nivel 1
Mesaje: 110
Membru din: 29 Aug 2015, 12:22
Server: www.metin2trohunt.ro
Regat: Jinno
Aprecieri: 8  
Mulţumiri: 3  
Medalii

C.KenT scrie:

Cod: Selectaţi tot

#!/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 Copyright @ 2016-2017 ! \033[0m"
read chs

case $chs in 
1*) 
   echo -e "\033[31m (Server): Fix - Offline Shop\033[0m"
   cd /usr/home/game/server/db_auth/db
   sleep 5
   clear
   echo -e "\033[31m (Server): Deschid - DATABASES \033[0m"
   cd /usr/home/game/server/db_auth/db
   ./db &
   sleep 5
   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
   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 Copyright @ 2015! \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 Copyright @ 2015! \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 Copyright @ 2015! \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
Incearca acuma

aceiasi eroare..
bad variable name
not found
start.sh :error 12: syntax error : word unexpected (expecting ")")


orice start.sh as pune...
Heroes never die.They just go in hell to regroup! ;)
Imagine
www.metin2trohunt.ro
Afișează semnătura
Avatar utilizator
Marius011
Nivel 1

Nivel 1
Mesaje: 110
Membru din: 29 Aug 2015, 12:22
Server: www.metin2trohunt.ro
Regat: Jinno
Aprecieri: 8  
Mulţumiri: 3  
Medalii

cineva?
Heroes never die.They just go in hell to regroup! ;)
Imagine
www.metin2trohunt.ro
Afișează semnătura
Avatar utilizator
K3RN3L
Utilizator interzis !

Utilizator interzis !
Mesaje: 597
Membru din: 01 Feb 2017, 18:44
Server: N-am
Regat: Chunjo
Aprecieri: 106  
Mulţumiri: 141  
Medalii

In channel1 ai si al 2 lea core?
Avatar utilizator
Moț
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 2825
Membru din: 03 Apr 2017, 15:00
Aprecieri: 216  
Mulţumiri: 3040  
Discord: Copiază ID
Medalii

Dacă în 3 zile autorul subiectului nu va da niciun semn de viata în topic, subiectul va fi mutat în Arhivă Probleme şi Întrebări.
Imagine
Afișează semnătura
Închis
Răspunsuri
7
Vizualizări
843
Răspunsuri
5
Vizualizări
328
Răspunsuri
4
Vizualizări
292

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

  • Informaţie
  • Cine este conectat

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