Problema start.sh

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
tatrobert98
Utilizator interzis !

Utilizator interzis !
Mesaje: 103
Membru din: 26 Noi 2016, 11:14
Server: Metin2Aeros
Regat: Shinsoo
Aprecieri: 33  
Mulţumiri: 0
Medalii

Asta e start.sh ..Nu ma descurc sa il fac ,ma poate ajuta cineva??

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 usr/home/game/g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd usr/home/game/auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd usr/home/game/channel1/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Ch88 ..\033[0m"
	cd usr/home/game/game88/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
	cd usr/home/game/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 usr/home/game/g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd usr/home/game/auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd usr/home/game/channel1/
	./game &
	sleep 2
	clear
	cd usr/home/game/game99/
	./game &
	sleep 2
	clear
	cd usr/home/game/game88/
	./game &
	sleep 2
	clear
	echo -e "\033[32m \n Server a fost pornit cu succes!\033[0m"
;;
esac
Imagine Imagine
Imagine
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

tatrobert98 scrie:Asta e start.sh ..Nu ma descurc sa il fac ,ma poate ajuta cineva??

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 usr/home/game/g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd usr/home/game/auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd usr/home/game/channel1/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Ch88 ..\033[0m"
	cd usr/home/game/game88/
	./game &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
	cd usr/home/game/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 usr/home/game/g1/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste Auth ..\033[0m"
	cd usr/home/game/auth 
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
	cd usr/home/game/channel1/
	./game &
	sleep 2
	clear
	cd usr/home/game/game99/
	./game &
	sleep 2
	clear
	cd usr/home/game/game88/
	./game &
	sleep 2
	clear
	echo -e "\033[32m \n Server a fost pornit cu succes!\033[0m"
;;
esac
Imagine Imagine

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 /usr/home/game/g1/db/
   ./db &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste Auth ..\033[0m"
   cd /usr/home/game/auth
   ./auth &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
   cd /usr/home/game/channel1/
   ./game &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste Ch88 ..\033[0m"
   cd /usr/home/game/game88/
   ./game &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
   cd /usr/home/game/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 /usr/home/game/g1/db/
   ./db &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste Auth ..\033[0m"
   cd /usr/home/game/auth
   ./auth &
   sleep 2
   clear
   echo -e "\033[31m \n Se porneste CH 1 ..\033[0m"
   cd /usr/home/game/channel1/
   ./game &
   sleep 2
   clear
   cd /usr/home/game/game99/
   ./game &
   sleep 2
   clear
   cd /usr/home/game/game88/
   ./game &
   sleep 2
   clear
   echo -e "\033[32m \n Server a fost pornit cu succes!\033[0m"
;;
esac
Pentru acest mesaj, [Tupeu] for the post:
tatrobert98
Avatar utilizator
tatrobert98
Utilizator interzis !

Utilizator interzis !
Mesaje: 103
Membru din: 26 Noi 2016, 11:14
Server: Metin2Aeros
Regat: Shinsoo
Aprecieri: 33  
Mulţumiri: 0
Medalii

Mersi frumos.T/C
Imagine
Afișează semnătura
Închis
Răspunsuri
7
Vizualizări
830
Răspunsuri
5
Vizualizări
321
Răspunsuri
4
Vizualizări
280

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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