#!/bin/sh #set -x umask 000 MDIR=/home/makefu/log DDIR=/srv/http/tmp mkdir -p $DDIR/graphs cat > $DDIR/.htaccess << EOF order allow,deny allow from all EOF # # chinaman # cat > $MDIR/plot/chinaman.conf <$MDIR/plot/chinaman_last_day.conf cat $MDIR/plot/chinaman.conf | gnuplot > $DDIR/graphs/chinaman_overall.png tail -n288 $MDIR/chinaman_ati_temper > $MDIR/chinaman_last_day cat $MDIR/plot/chinaman_last_day.conf | gnuplot > $DDIR/graphs/chinaman_24h.png rm $MDIR/chinaman_last_day # #bitcoinpool # cat > $MDIR/plot/bitcoinpool.conf <$MDIR/plot/bitcoinpool_last_day.conf cat $MDIR/plot/bitcoinpool.conf | gnuplot > $DDIR/graphs/bitcoinpool.png tail -n288 $MDIR/bitcoinpool_stats > $MDIR/bitcoinpool_last_day cat $MDIR/plot/bitcoinpool_last_day.conf | gnuplot > $DDIR/graphs/bitcoinpool_24h.png rm $MDIR/bitcoinpool_last_day # uk_speed round_time round_shares active_workers useast_speed uscentral_speed uswest_speed hash_rate nl_speed cat > $MDIR/plot/btcguild.conf <$MDIR/plot/btcguild_last_day.conf gnuplot $MDIR/plot/btcguild.conf > $DDIR/graphs/btcguild.png tail -n288 $MDIR/btcguild_stats > $MDIR/btcguild_last_day gnuplot $MDIR/plot/btcguild_last_day.conf > $DDIR/graphs/btcguild_24h.png rm $MDIR/btcguild_last_day # #bitcoinslc # cat > $MDIR/plot/bitcoinslc.conf <$MDIR/plot/bitcoinslc_last_day.conf cat $MDIR/plot/bitcoinslc.conf | gnuplot > $DDIR/graphs/bitcoinslc.png tail -n288 $MDIR/bitcoinslc_stats > $MDIR/bitcoinslc_last_day cat $MDIR/plot/bitcoinslc_last_day.conf | gnuplot > $DDIR/graphs/bitcoinslc_24h.png rm $MDIR/bitcoinslc_last_day