I have look through the forums and got the following but it is not working
I am running cgminer 3.9.0
====
C=`pidof cgminer | wc -w`
if [ "$C" != "1" ]; then
/etc/init.d/cgminer stop
/etc/init.d/cgminer start
exit 0;
fi
A=`cat /tmp/cm.log | sed "s/ //g"`
B=`cgminer-api | grep "^ \[Accepted\]" | sed "s/ //g"`
echo $B > /tmp/cm.log
if [ "$A" == "$B" ]; then
/etc/init.d/cgminer stop
/etc/init.d/cgminer start
exit 0;
fi
====
All I am getting is what is below when i look to see why it has stopped
cgminer: 698d677
cgminer-openwrt-packages: aadd747+
luci: 346e3e7+
Reply was 'STATUS=S,When=1390999538,Code=70,Msg=CGMiner stats,Description=cgminer 3.9.0|STATS=0,ID=AVA0,Elapsed=4747,Calls=0,Wait=0.000000,Max=0.000000,Min=99999999.000000,baud=115200,miner_count=16,asic_count=10,timeout=9,frequency=1300,fan1=5040,fan2=4800,fan3=3840,temp1=13,temp2=38,temp3=-1,temp_max=113,Device Hardware%=1.6423,no_matching_work=2312,match_work_count1=14249,match_work_count2=14231,match_work_count3=14307,match_work_count4=14510,match_work_count5=14109,match_work_count6=14092,match_work_count7=14214,match_work_count8=14174,match_work_count9=14066,match_work_count10=14172,match_work_count11=14296,match_work_count12=13945,match_work_count13=12642,match_work_count14=14320,match_work_count15=14198,match_work_count16=14203,Controller Version=0,Avalon Chip=55,USB Pipe=0,USB Delay=r0 0.000000 w0 0.000000,USB tmo=242084 0|STATS=1,ID=POOL0,Elapsed=4747,Calls=0,Wait=0.000000,Max=0.000000,Min=99999999.000000,Pool Calls=0,Pool Attempts=0,Pool Wait=0.000000,Pool Max=0.000000,Pool Min=99999999.000000,Pool Av=0.000000,Work Had Roll Time=false,Work Can Roll=false,Work Had Expire=false,Work Roll Time=0,Work Diff=127.99804688,Min Diff=3.99993896,Max Diff=255.99609375,Min Diff Count=1060,Max Diff Count=6030,Times Sent=2201,Bytes Sent=319969,Times Recv=2382,Bytes Recv=1884858,Net Bytes Sent=320752,Net Bytes Recv=1884858|'
[STATUS] =>
(
[STATUS] => S
[When] => 1390999538
[Code] => 70
[Msg] => CGMiner stats
[Description] => cgminer 3.9.0
)
[STATS0] =>
(
[STATS] => 0
[ID] => AVA0
[Elapsed] => 4747
[Calls] => 0
[Wait] => 0.000000
[Max] => 0.000000
[Min] => 99999999.000000
[baud] => 115200
[miner_count] => 16
[asic_count] => 10
[timeout] => 9
[frequency] => 1300
[fan1] => 5040
[fan2] => 4800
[fan3] => 3840
[temp1] => 13
[temp2] => 38
[temp3] => -1
[temp_max] => 113
[Device Hardware%] => 1.6423
[no_matching_work] => 2312
[match_work_count1] => 14249
[match_work_count2] => 14231
[match_work_count3] => 14307
[match_work_count4] => 14510
[match_work_count5] => 14109
[match_work_count6] => 14092
[match_work_count7] => 14214
[match_work_count8] => 14174
[match_work_count9] => 14066
[match_work_count10] => 14172
[match_work_count11] => 14296
[match_work_count12] => 13945
[match_work_count13] => 12642
[match_work_count14] => 14320
[match_work_count15] => 14198
[match_work_count16] => 14203
[Controller Version] => 0
[Avalon Chip] => 55
[USB Pipe] => 0
[USB Delay] => r0 0.000000 w0 0.000000
[USB tmo] => 242084 0
)
Any help would be grateful.
Thanks