Skip to content

Instantly share code, notes, and snippets.

@marvin-marvin
Last active June 24, 2019 16:18
Show Gist options
  • Save marvin-marvin/798eaaf5d3d02a8ceaf545bc69c13cd9 to your computer and use it in GitHub Desktop.
Save marvin-marvin/798eaaf5d3d02a8ceaf545bc69c13cd9 to your computer and use it in GitHub Desktop.
speedtest crontab
# make sure crontab is used
@reboot /usr/bin/crontab /etc/cron.d/crontab
#*/15 * * * * /usr/bin/crontab /etc/cron.d/crontab
# ENV
SHELL=/bin/bash
# min,hour,dayOfMonth,month,dayOfWeek
00 * * * * echo "######################################################" > /proc/1/fd/1 2>/proc/1/fd/2 && echo "################## `date +\%F-\%H:\%M` ##################" > /proc/1/fd/1 2>/proc/1/fd/2 && echo "######################################################" > /proc/1/fd/1 2>/proc/1/fd/2 && /usr/local/bin/speedtest --bytes --secure > /proc/1/fd/1 2>/proc/1/fd/2
# An empty line is required at the end of this file for a valid cron file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment