Permalink
Browse files

miner_software: update the miner.sh with miner.py

  • Loading branch information...
1 parent 8e50748 commit f2a422da579ebed756f32519d35f458776dc8716 Xiangfu Liu committed Jan 26, 2012
Showing with 18 additions and 11 deletions.
  1. +13 −0 miner_software/queue_ver/miner.sh
  2. +5 −11 miner_software/simple_ver/miner.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+LOG_DIR=../log
+mkdir -p ${LOG_DIR}
+
+ERROR_FILE=${LOG_DIR}/miner.err
+
+#WORKER=http://xiangfu.0:x@pool.ABCPool.co:8332
+#WORKER=http://xiangfu.z@gmail.com_0:1234@127.0.0.1:9332/
+
+WORKER=http://xiangfu.z@gmail.com_0:1234@pit.deepbit.net:8332/
+
+./miner.py -u ${WORKER} -s /dev/ttyUSB0 > ${LOG_DIR}/`date +%Y%m%d-%H:%M`.log 2>&1
@@ -1,19 +1,13 @@
#!/bin/bash
-WORKER=http://xiangfu.0:x@pool.ABCPool.co:8332
-SERIAL=/dev/ttyUSB0
-
LOG_DIR=../log
mkdir -p ${LOG_DIR}
ERROR_FILE=${LOG_DIR}/miner.err
-COUNTER=1
+#WORKER=http://xiangfu.0:x@pool.ABCPool.co:8332
+#WORKER=http://xiangfu.z@gmail.com_0:1234@127.0.0.1:9332/
+
+WORKER=http://xiangfu.z@gmail.com_0:1234@pit.deepbit.net:8332/
-while [ true ]
-do
- echo `date` : Start ... >> ${ERROR_FILE}
- python miner.py -u ${WORKER} -s ${SERIAL} > ${LOG_DIR}/`date +%Y%m%d`.${COUNTER}.log 2>&1
- echo `date` : Exit with: $?. Counter: ${COUNTER} >> ${ERROR_FILE}
- let COUNTER=COUNTER+1
-done
+./miner.py -u ${WORKER} -s /dev/ttyUSB0 > ${LOG_DIR}/`date +%Y%m%d-%H:%M`.log 2>&1

0 comments on commit f2a422d

Please sign in to comment.