Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # uncomment to debug
  4. # set -x
  5.  
  6. # variables
  7. OUTPUT=/var/log/speedtest.log
  8.  
  9. # ensure log exists and is empty
  10. #echo "" > $OUTPUT
  11.  
  12. # do the thing!
  13. $(which speedtest-cli) --simple >> $OUTPUT
  14.  
  15. # this part should go in the cron somewhere
  16. tail -n 3 $OUTPUT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement