Posts: 12
Threads: 3
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Feb 2012
Reputation:
0
run:
#!/bin/bash
while ( : ) do
DATE=`date`
if [ -r .shutdown ]; then
rm -f .shutdown
fi
mono ./cash.exe
DATE2=`date`
if [ -r .shutdown ]; then
echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
exit
fi
echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
sleep 2
done
start:
./run cash_test start &
cd LastChaos_1/
cd cash/
ls
cash.exe Log\20121229_CashServer.log MySql.Data.dll
Config.ini Log\20121230_CashServer.log README.txt
DatabaseUpdate.sql Log\20121231_CashServer.log run
Log Log\20130101_CashServer.log start.sh
./start.sh
./start.sh: ./run: /bin/bash^M: bad interpreter: No such file or directory
What to do? Thanks in advance ...
Posts: 11
Threads: 3
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2012
Reputation:
0
location: /lc2/CashServer/cash.exe
run:
#!/bin/bash
while ( : ) do
DATE=`date`
if [ -r .shutdown ]; then
rm -f .shutdown
fi
mono ./cash.exe
DATE2=`date`
if [ -r .shutdown ]; then
echo "***** Shutdown $DATE ~ $DATE2" >> rebootlog
exit
fi
echo "!!!!! Reboot $DATE ~ $DATE2" >> rebootlog
sleep 2
done
start.sh:
./run cash_test start &
startService.sh
cd /lc2/;
cd CashServer;
./start.sh;
Posts: 12
Threads: 3
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Feb 2012
Reputation:
0
[root@p148540 cash]# ./start.sh
[root@p148540 cash]# ./start.sh: ./run: /bin/bash^M: bad interpreter: No such file or directory