Eclectic Media Git auto_bandwidth_test / 452f4a6
Made client side test more verbose Ariana Giroux 7 months ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3838 tput setaf 3
3939 echo "Attempting test, this may take some time."
4040 iperf -c "$remote_ip" -p 8028 | grep "^\[ " > /tmp/iperf_out
41 tput setaf 5; cat /tmp/iperf_out
4142
42 echo "Test complete! Reporting test results!"
43 tput setaf 3; echo "Test complete! Reporting test results!"
4344 tput sgr0
4445
4546 jquery_string=$(jq -R -s -c 'split("\n")' < /tmp/iperf_out)
4849 -H "X-API-KEY: $(cat mykey)" \
4950 -d "{\"data\":$jquery_string}" http://eclecticmedia.space:8029/
5051
51 echo ''
52 echo ''
52 tput setaf 3
5353 echo 'DONE!'