Am 4 ch-uri in winscp... Sper sa ma ajutati , Multumesc !
w#!/bin/sh
echo -e "\033[32m
Cate canale vrei sa pornesti ? \n
1 - Toate canalele?
by BaF."
read anzahl
case $anzahl in
1*)
echo -e "\033[32m Pornesc baza de date ..\033[33m"
cd /usr/home/game/db && ./db &
sleep 2
cd /usr/home/game/auth && ./auth &
sleep 2
echo -e "\033[32m Baza de date a pornit.\033[33m"
echo -e "\033[32m Pornesc Channel 1 Core 1 ..\033[33m"
cd /usr/home/game/channel1/core1
env LD_PRELOAD="/usr/home/game/costumesystem/Costume.so" ./gamecore1 &
sleep 2
echo -e "\033[32m Channel 1 Core 1 a pornit.\033[33m"
echo -e "\033[32m Pornesc Ch99 ..\033[33m"
cd /usr/home/game/game99
env LD_PRELOAD="/usr/home/game/costumesystem/Costume.so" ./gamecore99 &
sleep 2
echo -e "\033[32m Serverul a fost pornit cu succes!.\n
\n
By BaF.\033[33m"
cd ..
;;
esac
echo -e "\033[32m
Cate canale vrei sa pornesti ? \n
1 - Toate canalele?
by BaF."
read anzahl
case $anzahl in
1*)
echo -e "\033[32m Pornesc baza de date ..\033[33m"
cd /usr/home/game/db && ./db &
sleep 2
cd /usr/home/game/auth && ./auth &
sleep 2
echo -e "\033[32m Baza de date a pornit.\033[33m"
echo -e "\033[32m Pornesc Channel 1 Core 1 ..\033[33m"
cd /usr/home/game/channel1/core1
env LD_PRELOAD="/usr/home/game/costumesystem/Costume.so" ./gamecore1 &
sleep 2
echo -e "\033[32m Channel 1 Core 1 a pornit.\033[33m"
echo -e "\033[32m Pornesc Ch99 ..\033[33m"
cd /usr/home/game/game99
env LD_PRELOAD="/usr/home/game/costumesystem/Costume.so" ./gamecore99 &
sleep 2
echo -e "\033[32m Serverul a fost pornit cu succes!.\n
\n
By BaF.\033[33m"
cd ..
;;
esac


