summaryrefslogtreecommitdiffstats
path: root/gold/scoreboard/modules/available/bitcoin/gather
blob: 22410f7b8eeb5499e80ff2f89b291fb11ece79d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
HERE=$(dirname $(readlink -f $0))
. $HERE/../../../profile
LF=bitcoin
mkdir -p $ADIR
mkdir -p $LDIR


# write into live directory and archive
#$BITCOIND_PATH getinfo | python $HERE/render | tee $LDIR/$LF >> $ADIR/$LF
echo  `date +"%Y-%m-%dT%H:%M:%S"` `$KREBSDIR/bin/bitcoinslc_stats` | sed -e 's/Difficulty: //' -e 's/Block: //' | tee $LDIR/_${LF}>> $ADIR/${LF}

echo  `date +"%Y-%m-%dT%H:%M:%S"` `$KREBSDIR/bin/mtgox_ticker` | sed -e 's/High: //' -e 's/Low: //' -e 's/Last: //' | tee $LDIR/ticker_${LF}>> $ADIR/ticker_${LF}