-
-
Save mchelen/43b289e66e7f410835f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Use the testping.sh script to retrieve the times of a Pings | |
#Then use the following script to plot it with gnuplot | |
set terminal pdfcairo font "Gill Sans,9" linewidth 2 rounded fontscale 1.0 | |
set output "ping.pdf" | |
set ylabel "Time in milliseconds" | |
set xlabel "Number of Pings" | |
plot "pingTimes.dat" w lp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ping -c 100 google.com | gawk -F= 'NF>1{print $NF+1;fflush()}' | tee pingTimes.dat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment