![]() |
|
run for shop - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198) +---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147) +---- Thread: run for shop (/showthread.php?tid=1472) |
- Izirayd - 01-02-2013 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 ... - redbull - 01-03-2013 /start run too - Soul - 01-03-2013 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; - Izirayd - 01-03-2013 [root@p148540 cash]# ./start.sh [root@p148540 cash]# ./start.sh: ./run: /bin/bash^M: bad interpreter: No such file or directory - luoo - 01-03-2013 dos2unix start.sh |