I copied and pasted the script as per instructions on an XL instance with MS Azure using Ubuntu 13.10, and it builds all the way through with no issue.
When I type in "./peek" this is what it spits out:
"blocks" : 283214,
"chainspermin" : 2,
"chainsperday" : 0.31112504,
"currentblocksize" : 4110,
"currentblocktx" : 8,
"difficulty" : 9.98067725,
"errors" : "",
"generate" : true,
"genproclimit" : -1,
"primespersec" : 331,
"pooledtx" : 8,
"sieveextensions" : 6,
"sievepercentage" : 10,
"sievesize" : 1000000,
"testnet" : false
}
Confirmed Balance: 0.00000000
Immature Balance: 0
Immature TX: 0
Connections: 8
Recent:
2013-11-29 15:57:12 primemeter 1172464 prime/h 28452292 test/h 300 5-chains/h 0.317413 chain/d
2013-11-29 15:58:12 primemeter 1206559 prime/h 28688949 test/h 240 5-chains/h 0.319413 chain/d
2013-11-29 15:59:12 primemeter 1205956 prime/h 28979637 test/h 240 5-chains/h 0.322072 chain/d
2013-11-29 16:00:12 primemeter 1199041 prime/h 28741496 test/h 120 5-chains/h 0.320770 chain/d
2013-11-29 16:01:12 primemeter 1193765 prime/h 28420365 test/h 180 5-chains/h 0.311125 chain/d
Averages:
awk: cmd. line:1: {s1+=$4;s2+=$6;s3+=$8;s4+=$10} END {printf"%10s: %10d\n%10s: %10d\n%10s: %10d\n%10s: %10.5f
awk: cmd. line:1: ^ unterminated string
awk: cmd. line:1: {s1+=$4;s2+=$6;s3+=$8;s4+=$10} END {printf"%10s: %10d\n%10s: %10d\n%10s: %10d\n%10s: %10.5f
awk: cmd. line:1: ^ syntax error
What happened to cause the script to get messed up like that? And what can I do to fix it?