Results 1 to 4 of 4

Thread: Problem with Crontab and a speedtest script

Threaded View

  1. #1
    Join Date
    Apr 2014

    Problem with Crontab and a speedtest script

    Hi everybody, i've a problem with the periodic execution of a speedtest script through crontab.
    I've wrote the following script invoking the speedtest-cli script, the script is the following:
    #!/bin/shdate >> /home/user/speedtest.log
    speedtest-cli --simple >> /home/user/speedtest.log
    echo "" >> /home/user/speedtest.log
    Then i've edited the crontab configuration file (crontab -e) with the following line, in order to test and write down the network speed every half an hour:
    0,30 * * * * /home/user/
    So, the resulting file speedtest.log only contains the date of the tests, without the internet speed results.

    If I run the script manually from terminal, the script runs correctly and the speedtest.log contains the date anche the speedtest output.
    Where's the mistake?
    Thanks everybody...

    This is the output file with crontab:
    Tue Apr 29 11:00:53 CEST 2014
    Download: 4.84 Mbits/s
    Upload: 0.47 Mbits/s
    Tue Apr 29 11:30:45 CEST 2014
    Download: 3.89 Mbits/s
    Upload: 0.38 Mbits/s
    And this with the manual execution:
    Tue Apr 29 11:47:11 CEST 2014
    Tue Apr 29 11:51:32 CEST 2014
    Tue Apr 29 11:55:08 CEST 2014
    P.S. Sorry for my english, but it's not my native language...
    Last edited by marco39; April 30th, 2014 at 01:53 PM. Reason: solved


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts