Acesta este start.sh care il am
Cod: Selectaţi tot
#!/bin/sh
echo -e "\033[32m
1 - (1) Pornesc CH1 \n
2 - (2) Pornesc CH2 \n
3 - (3) Pornesc CH3 \n
4 - (4) Pornesc CH4 \n
5 - (5) Copileaza Questurile \n
6 - (6) Anuleaza Actiunea! \033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/Canale/BazaDate/db
./db &
sleep 2
clear
echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/Canale/BazaDate/auth
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul1/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul1/corul2
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul99/corul1
./game &
sleep 2
clear
;;
2*)
echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/Canale/BazaDate/auth
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/Canale/BazaDate/db
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul1/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul1/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul2/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul2/corul2
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul99/corul1
./game &
sleep 2
clear
;;
3*)
echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/Canale/BazaDate/auth
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/Canale/BazaDate/db
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul1/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul1/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul2/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul2/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul3/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul3/corul2
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul99/corul1
./game &
sleep 2
clear
;;
4*)
echo -e "\033[31m PORNESC BAZA DE DATE ..\033[0m"
cd /usr/home/game/Canale/BazaDate/auth
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC LOGINU ..\033[0m"
cd /usr/home/game/Canale/BazaDate/db
./db &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL1_2CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul1/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul1/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL2_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul2/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul2/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL3_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul3/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul3/corul2
./game &
sleep 2
echo -e "\033[31m \n PORNESC CHANNEL4_2CORE...\033[0m"
cd /usr/home/game/Canale/Canalul4/corul1
./game &
sleep 2
cd /usr/home/game/Canale/Canalul4/corul2
./game &
sleep 2
clear
echo -e "\033[31m \n PORNESC CHANNEL99_1CORE ..\033[0m"
cd /usr/home/game/Canale/Canalul99/corul1
./game &
sleep 2
clear
;;
5*)
cd /usr/home/game/share/locale/romania/quest &&
python compile.py
sleep 1
echo -e "\033[31m Questurile au fost copilate!\033[0m"
cd ..
;;
6*)
clear
echo -e "\033[32m \n Actiune Anulata!\033[0m"
;;
esacSi eroare este:
Cod: Selectaţi tot
PORNESC LOGINU ..
start.sh: ./db: not found
PORNESC BAZA DE DATE ..
start.sh: ./game: not found
PORNESC CHANNEL1_2CORE ..
start.sh: ./game: not found
start.sh: ./game: not found
PORNESC CHANNEL99_1CORE ..
start.sh: ./game: not found
root@metin2:/usr/game #
Multumesc,
cine ma ajuta ii multumesc foarte mult si ii dau un THX







