Skip to content

Instantly share code, notes, and snippets.

@dliggat
Last active August 29, 2015 13:55
Show Gist options
  • Save dliggat/8698844 to your computer and use it in GitHub Desktop.
Save dliggat/8698844 to your computer and use it in GitHub Desktop.
Crontab to test bandwidth speed: 4 times a day
# 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
@dliggat
Copy link
Author

dliggat commented Jan 29, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment