What's new

Cron speedtest question

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sirbrent

New Around Here
This question is a more of a linux question than a networking question. I have a Ubiquiti EdgeRouter X which runs Debian. I am fairly inexperienced with Linux.

I installed the speedtest-cli tool (https://github.com/sivel/speedtest-cli) I then wrote a small script to run the speedtest, append the output to a log file (with timestamp) and also send the output to syslog.

When I run the script from CLI everything goes as planned (run as admin user, not root). When I set it to run in crontab it appends to log file but does not send to or show in syslog.

I am hoping someone can tell me what I am doing wrong :)

I have attached the tiny script that is being run.
My cron entry is (everyday at 5am):
0 5 * * * bash /home/admin/speedtest_script
 

Attachments

  • speedtest_script.txt
    394 bytes · Views: 737

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top