Cerere Start.sh

Închis
Avatar utilizator
klaudyu14
Nivel 3

Nivel 3
Mesaje: 301
Membru din: 23 Iul 2014, 23:01
Server: www.metin2hyperx.com
Regat: Jinno
Aprecieri: 34  
Mulţumiri: 179  
 Contact:
Medalii

Salut!
Am si eu nevoie de un start sh pentru 2 ch-uri
am facut 2 ch-uri. cand modific in start.sh actual directia de la ch1 si pun ch2 merge porneste ch2 . cand incerc sa pornesc pe amn2 cum am modificat eu porneste doar ch1.

Cod: Selectaţi tot

#!/bin/sh
echo -e "\033[32m  
1 - (1) Pornim CH1? \n
2 - (2) Anuleaza Actiunea! \033[0m"
echo -e "\033[36m Copyright @ 2016! Toate drepturile sunt rezervate lui Vlad Fratele lui Clau. \033[0m"
read chs

case $chs in 
1*) 

	echo -e "\033[31m BAZA DE DATE \033[0m"
	cd /usr/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n LOGIN \033[0m"
	cd /usr/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n CORE2 \033[0m"
	cd /usr/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n GAME99 \033[0m"	
	cd /usr/game/server/game/game99/
	./game99 &
	sleep 2
	clear
echo -e "\033[36m Server-ul a pornit \033[0m"
;;
2*)
clear
	echo -e "\033[32m \n Actiune anulata.\033[0m"
;;
esac
asta e start.sh-ul care il am la server.
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

klaudyu14 scrie:Salut!
Am si eu nevoie de un start sh pentru 2 ch-uri
am facut 2 ch-uri. cand modific in start.sh actual directia de la ch1 si pun ch2 merge porneste ch2 . cand incerc sa pornesc pe amn2 cum am modificat eu porneste doar ch1.

Cod: Selectaţi tot

#!/bin/sh
echo -e "\033[32m  
1 - (1) Pornim CH1? \n
2 - (2) Anuleaza Actiunea! \033[0m"
echo -e "\033[36m Copyright @ 2016! Toate drepturile sunt rezervate lui Vlad Fratele lui Clau. \033[0m"
read chs

case $chs in 
1*) 

	echo -e "\033[31m BAZA DE DATE \033[0m"
	cd /usr/game/server/db_auth/db/
	./db &
	sleep 2
	clear
	echo -e "\033[31m \n LOGIN \033[0m"
	cd /usr/game/server/db_auth/auth/
	./auth &
	sleep 2
	clear
	echo -e "\033[31m \n CORE2 \033[0m"
	cd /usr/game/server/ch1/core_1/
	./core_1 &
	sleep 2
	cd /usr/game/server/ch1/core_2/
	./core_2 &
	sleep 2
	clear
	echo -e "\033[31m \n GAME99 \033[0m"	
	cd /usr/game/server/game/game99/
	./game99 &
	sleep 2
	clear
echo -e "\033[36m Server-ul a pornit \033[0m"
;;
2*)
clear
	echo -e "\033[32m \n Actiune anulata.\033[0m"
;;
esac
asta e start.sh-ul care il am la server.
Poftim:

Cod: Selectaţi tot

#!/bin/sh


echo -e "\033[32m  
1 - (1) Pornim CH1? \n
2 - (2) Pornim CH1 & CH2? \n
3 - (3) Anuleaza Actiunea! \033[0m"
echo -e "\033[36m Copyright @ 2016! Toate drepturile sunt rezervate lui Vlad Fratele lui Clau. \033[0m"
read chs

case $chs in 
1*) 

   echo -e "\033[31m BAZA DE DATE \033[0m"
   cd /usr/game/server/db_auth/db/
   ./db &
   sleep 2
   clear
   echo -e "\033[31m \n LOGIN \033[0m"
   cd /usr/game/server/db_auth/auth/
   ./auth &
   sleep 2
   clear
   echo -e "\033[31m \n CH1 \033[0m"
   cd /usr/game/server/ch1/core_1/
   ./core_1 &
   sleep 2
   cd /usr/game/server/ch1/core_2/
   ./core_2 &
   sleep 2
   clear
   echo -e "\033[31m \n GAME99 \033[0m"   
   cd /usr/game/server/game/game99/
   ./game99 &
   sleep 2
   clear
echo -e "\033[36m Server-ul a pornit \033[0m"
;;
2*) 

   echo -e "\033[31m BAZA DE DATE \033[0m"
   cd /usr/game/server/db_auth/db/
   ./db &
   sleep 2
   clear
   echo -e "\033[31m \n LOGIN \033[0m"
   cd /usr/game/server/db_auth/auth/
   ./auth &
   sleep 2
   clear
   echo -e "\033[31m \n CH1 \033[0m"
   cd /usr/game/server/ch1/core_1/
   ./core_1 &
   sleep 2
   cd /usr/game/server/ch1/core_2/
   ./core_2 &
   sleep 2
   clear
   echo -e "\033[31m \n CH2 \033[0m"
   cd /usr/game/server/ch2/core_1/
   ./core_1 &
   sleep 2
   cd /usr/game/server/ch2/core_2/
   ./core_2 &
   sleep 2
   clear
   echo -e "\033[31m \n GAME99 \033[0m"   
   cd /usr/game/server/game/game99/
   ./game99 &
   sleep 2
   clear
echo -e "\033[36m Server-ul a pornit \033[0m"
;;
3*)
clear
   echo -e "\033[32m \n Actiune anulata.\033[0m"
;;
esac
Pentru acest mesaj, [RaffaeL] for the post:
klaudyu14
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
Spyke
Metin Master

Metin Master
Mesaje: 2613
Membru din: 29 Iul 2016, 09:08
Server: Aoem2
Aprecieri: 205  
Mulţumiri: 3918  
Discord: Copiază ID
Medalii

Subiect inactiv de 3 zile+
Arhivat!
Închis
Răspunsuri
4
Vizualizări
457
Răspunsuri
6
Vizualizări
818
Răspunsuri
2
Vizualizări
653

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

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