{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/2021/07/06/trouble-with-speedtest-cli-not-working-with-crontab/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/2021/07/06/trouble-with-speedtest-cli-not-working-with-crontab/", "feed_url": "https://matoken.org/blog/2021/07/06/trouble-with-speedtest-cli-not-working-with-crontab/feed/json/", "language": "ja", "title": "Comments on: speedtest-cli \u304c crontab \u3067\u52d5\u4f5c\u3057\u306a\u304f\u3066\u56f0\u308b", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "https://matoken.org/blog/2021/07/06/trouble-with-speedtest-cli-not-working-with-crontab/#comment-24823", "url": "https://matoken.org/blog/2021/07/06/trouble-with-speedtest-cli-not-working-with-crontab/#comment-24823", "content_html": "Hello from the US!\r\n\r\nI had the same problem. What I did was to create a shell script that I execute with setting bash as shell and changing the working directory. Since then it seems to work.\r\n\r\nThis is a non-production setup, so some security is lacking e.g. executing a shell script in the root directory.\r\n\r\nCrontab entry:\r\n10 9,10,11,12,13 * * * cd /root/ ; /root/speedtest.sh \r\n\r\nActually Shell script speedtest.sh:\r\n#!/bin/bash\r\n/usr/local/bin/speedtest-cli 2>&1 | /usr/sbin/ssmtp -vvv my-email@address &> /tmp/speedtest-status-msg.txt\r\n\r\nI hope this helps. I am still testing but the first set of tests looked promising.", "content_text": "Hello from the US!\r\n\r\nI had the same problem. What I did was to create a shell script that I execute with setting bash as shell and changing the working directory. Since then it seems to work.\r\n\r\nThis is a non-production setup, so some security is lacking e.g. executing a shell script in the root directory.\r\n\r\nCrontab entry:\r\n10 9,10,11,12,13 * * * cd /root/ ; /root/speedtest.sh \r\n\r\nActually Shell script speedtest.sh:\r\n#!/bin/bash\r\n/usr/local/bin/speedtest-cli 2>&1 | /usr/sbin/ssmtp -vvv my-email@address &> /tmp/speedtest-status-msg.txt\r\n\r\nI hope this helps. I am still testing but the first set of tests looked promising.", "date_published": "2022-06-07T22:49:08+09:00", "authors": [ { "name": "Frank S", "url": "", "avatar": "https://secure.gravatar.com/avatar/869b72662df164d931ee9101ac8c66ab3ccc250822c4b94760d159517ab3b8ee?s=512&d=mm&r=g" } ], "author": { "name": "Frank S", "url": "", "avatar": "https://secure.gravatar.com/avatar/869b72662df164d931ee9101ac8c66ab3ccc250822c4b94760d159517ab3b8ee?s=512&d=mm&r=g" } } ] }