From c253cca57fc2b053d2398103e6fc78d3aba868a1 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Tue, 10 Dec 2019 10:33:40 +0800 Subject: [PATCH] remove unused script --- AntMinerGetAllpool | 21 --------------------- AntMinerGetAllstats | 23 ----------------------- 2 files changed, 44 deletions(-) delete mode 100755 AntMinerGetAllpool delete mode 100755 AntMinerGetAllstats diff --git a/AntMinerGetAllpool b/AntMinerGetAllpool deleted file mode 100755 index 6215f39..0000000 --- a/AntMinerGetAllpool +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?` - -if [ $up = 0 ]; then - -set -o errexit -set -o nounset - -ADDRESS=$1 -PORT=$2 -TIMEOUT=0.5 - -pools_raw=`echo '{"command":"pools"}' | timeout $TIMEOUT nc $ADDRESS $PORT | tr -d '\0\n'` -pools_raw=$(sed 's/}{/\},{/' <<< "$pools_raw") -POOLS=$(jq '.POOLS' <<< "$pools_raw") - -#fan_num=$(jq -r '.[1].fan_num' <<< "$STATS") - -echo $POOLS -fi diff --git a/AntMinerGetAllstats b/AntMinerGetAllstats deleted file mode 100755 index b8193c5..0000000 --- a/AntMinerGetAllstats +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -up=`/usr/bin/fping -c1 -t300 $1 &> /dev/null ; echo $?` - -if [ $up = 0 ]; then - -set -o errexit -set -o nounset - -ADDRESS=$1 -PORT=$2 -TIMEOUT=0.5 - -stats_raw=`echo '{"command":"stats"}' | timeout $TIMEOUT nc $ADDRESS $PORT | tr -d '\0\n'` -stats_raw=$(sed 's/}{/\},{/' <<< "$stats_raw") - -STATS=$(jq '.STATS' <<< "$stats_raw") - -#fan_num=$(jq -r '.[1].fan_num' <<< "$STATS") - -echo $STATS - -fi