I want to automate speedtest.net and test my network connection to specific server ID 36250 every 5 minutes.
Ive installed official speedtestCLI and wrote a script called run_speedtest.sh
#!/bin/bash date_now=`date "+%H:%M:%S %d/%m/%y"` result=/home/zaz/speedtesty/results speedtest -s 36250 >> result echo "$date_now" >> result
Now to automate things Ive edited my crontab file by using command: sudo crontab -e and it looks like this:
*/5 * * * * /bin/bash /home/zaz/speedtesty/run_speedtest.sh
results file is created, however only output in my results file are rows with current date. If I run script by typing bash run_speedtest.sh I get output in results that I want (speedtest measure + date)
Im a Ubuntu newbie, can someone help me out?