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






