Created
March 7, 2024 16:56
-
-
Save prestonmcgowan/476330fb8135d6d13c7db08da9c5c370 to your computer and use it in GitHub Desktop.
Speedtest with CLI
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
#!/bin/bash | |
FILE=/var/log/speedtest/speedtest-`date +"%Y%m"`.results | |
printf -- '-%.0s' {1..80} >> $FILE | |
echo >> $FILE | |
date >> $FILE | |
/usr/local/bin/speedtest --progress=no >> $FILE | |
printf -- '-%.0s' {1..80} >> $FILE | |
echo >> $FILE | |
## Speedtest CLI | |
# https://www.speedtest.net/apps/cli | |
## | |
## Crontab | |
## 0 */6 * * * /usr/local/bin/speedtest-log.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment