#!/bin/bash


if [[ "`uname`" != "Darwin" ]]; then
    N=${1:-4}

    watch -n 1 '
    for i in $(seq 1 '$N');
    do
        curl -s -m 1 http://172.77.5.$i:80/Stats | \
            tr -d "{}\"" | \
            awk -F "," '"'"'{gsub (/[,]/," "); print;}'"'"'
    done;
    '
fi

#!/bin/bash


N=${1:-4}

watch -n 1 '
for i in $(seq 1 '$N');
do
    curl -s -m 1 http://172.77.5.$i:80/Stats | \
        tr -d "{}\"" | \
        awk -F "," '"'"'{gsub (/[,]/," "); print;}'"'"'
done;
'

Allow the stats to run on Mac
Allow the stats to run on Mac
