Skip to content

Instantly share code, notes, and snippets.

@bitroniq
Created June 28, 2022 14:53
Show Gist options
  • Save bitroniq/0c428e91f69bf8f2c708e49531efef72 to your computer and use it in GitHub Desktop.
Save bitroniq/0c428e91f69bf8f2c708e49531efef72 to your computer and use it in GitHub Desktop.
speedtest-cli with interval
#!/bin/bash
while true; do speedtest-cli --csv; sleep 300; done
## Example
## 47590,Telewizja Kablowa SMNT,Nowy Tomyśl,2022-06-28T14:39:25.018280Z,147.92933777800633,18.491,214250762.91277993,182789875.8979877,,185.49.31.123
## speedtest-cli --csv --csv-header
## Server ID,Sponsor,Server Name,Timestamp,Distance,Ping,Download,Upload,Share,IP Address
while true; do speedtest-cli --simple | tr '\n' ' ' | ts ; echo "" ; done
# Jun 28 16:47:33 Ping: 18.361 ms Download: 255.12 Mbit/s Upload: 190.35 Mbit/s
# Jun 28 16:47:52 Ping: 20.787 ms Download: 250.77 Mbit/s Upload: 172.12 Mbit/s
# Jun 28 16:48:10 Ping: 22.171 ms Download: 308.17 Mbit/s Upload: 177.97 Mbit/s
# Jun 28 16:48:28 Ping: 21.987 ms Download: 202.48 Mbit/s Upload: 193.45 Mbit/s
# Jun 28 16:48:45 Ping: 19.535 ms Download: 207.97 Mbit/s Upload: 200.19 Mbit/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment