Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # uncomment to debug
- # set -x
- # variables
- OUTPUT=/var/log/speedtest.log
- # ensure log exists and is empty
- #echo "" > $OUTPUT
- # do the thing!
- $(which speedtest-cli) --simple >> $OUTPUT
- # this part should go in the cron somewhere
- tail -n 3 $OUTPUT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement