Advertisement
Squito

Untitled

Aug 15th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. DATE=$(date '+%Y-%m-%d %H:%M:%S')
  3. echo $DATE >> /home/teszt/speedtest.log
  4. speedtest-cli --simple --server 2073 | grep -i Download >> /home/teszt/speedtest.log
  5.  
  6. [Unit]
  7. Description=Speedtest
  8.  
  9. [Service]
  10. Type=oneshot
  11. ExecStart=/home/teszt/speedtest.sh
  12.  
  13. [Unit]
  14. Description=Speedtest
  15.  
  16. [Timer]
  17. OnCalendar=*-*-* *:0/5:00
  18. Persistent=true
  19.  
  20. [Install]
  21. WantedBy=timers.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement