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



daca te-am ajutat