Last active
August 29, 2015 13:55
-
-
Save dliggat/8698844 to your computer and use it in GitHub Desktop.
Crontab to test bandwidth speed: 4 times a day
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
# Note 1: Necessary to reproduce $PATH so that the boxen location for wget is picked up by the cron daemon. | |
# Note 2: Pick an appropriate output location - currently this is set to a logging directory in Dropbox | |
PATH=/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin | |
0 8,13,18,23 * * * wget --output-document=/dev/null --report-speed=bits http://speedtest.wdc01.softlayer.com/downloads/test10.zip 2>&1 | grep ') -' >> /Users/$USER/Dropbox/Logging/`hostname`-bandwidth.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After rebooting, one of my machines gets good WiFi performance which slowly degrades with time. This seems like a reasonable way to harvest some data to prove how/when this happens.