Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DATE=$(date '+%Y-%m-%d %H:%M:%S')
- echo $DATE >> /home/teszt/speedtest.log
- speedtest-cli --simple --server 2073 | grep -i Download >> /home/teszt/speedtest.log
- [Unit]
- Description=Speedtest
- [Service]
- Type=oneshot
- ExecStart=/home/teszt/speedtest.sh
- [Unit]
- Description=Speedtest
- [Timer]
- OnCalendar=*-*-* *:0/5:00
- Persistent=true
- [Install]
- WantedBy=timers.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement