Last active
June 24, 2019 16:18
-
-
Save marvin-marvin/798eaaf5d3d02a8ceaf545bc69c13cd9 to your computer and use it in GitHub Desktop.
speedtest crontab
This file contains hidden or 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
# 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