Pika scrie:Salutare.
Puteti sami legati si mie lib asta de start : env LD_PRELOAD="/usr/home/game/lib/LibCostume.so"
- sh start.sh| Afiseaza codul
#!/bin/sh
echo -e "\033[31m
Metin2! \n
1 - (1) Porneste 1 CH.\n
2 - (2) Porneste CH1,CH2 - ALL.\n
\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Se porneste Baza de date..\033[0m"
cd /usr/home/game/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 core ..\033[0m"
cd /usr/home/game/channel1/core1
./gamecore1 &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
cd /usr/home/game/game99/
./gamecore99 &
sleep 2
clear
echo -e "\033[32m \n CH1 este pornit astapta 10 secunde!\033[0m"
;;
2*)
echo -e "\033[31m Se porneste Baza de date ..\033[0m"
cd /usr/home/game/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 core ..\033[0m"
cd /usr/home/game/channel1/core1
./gamecore1 &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 2 core ..\033[0m"
cd /usr/home/game/channel2/core1
./gamecore1 &
sleep 2
clear
cd /usr/home/game/game99/
./gamecore99 &
sleep 2
clear
echo -e "\033[32m \n Ch1 Si Ch2 Au fost Pornite astapta 30 secunde!\033[0m"
;;
esac
Poftim:
#!/bin/sh
echo -e "\033[31m
Metin2! \n
1 - (1) Porneste 1 CH.\n
2 - (2) Porneste CH1,CH2 - ALL.\n
\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Se porneste Baza de date..\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./auth &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 1 core ..\033[0m"
cd /usr/home/game/channel1/core1
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./gamecore1 &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
cd /usr/home/game/game99/
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./gamecore99 &
sleep 2
clear
echo -e "\033[32m \n CH1 este pornit astapta 10 secunde!\033[0m"
;;
2*)
echo -e "\033[31m Se porneste Baza de date ..\033[0m"
cd /usr/home/game/db/
./db &
sleep 2
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./auth &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 1 core ..\033[0m"
cd /usr/home/game/channel1/core1
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./gamecore1 &
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 2 core ..\033[0m"
cd /usr/home/game/channel2/core1
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./gamecore1 &
sleep 2
clear
cd /usr/home/game/game99/
env LD_PRELOAD=/usr/home/game/lib/LibCostume.so ./gamecore99 &
sleep 2
clear
echo -e "\033[32m \n Ch1 Si Ch2 Au fost Pornite astapta 30 secunde!\033[0m"
;;
esac