Parcel ABC
Blog za darmo

Speedtest in crontab

Get speedtest-cli from here:

Lazy option:

wget -O speedtest-cli
chmod +x speedtest-cli

Add entry to crontab:

*/15    *       *       *       *       cd /home/user && (./speedtest-cli --simple | tr "\n" "\t" && date "+\%F\\ \%T") >> speedtest.log

Every 15 minutes this will add line to the /home/user/speedtest.log that looks like this:

Ping: 179.666 ms        Download: 135.96 Mbit/s Upload: 12.39 Mbit/s    2020-07-21\ 06:49:29

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>