I apologise for the re-post.
However I am just trying to get crontab to call one for my shell files.
I have tried every variation of the command but it will not run it.
The code is
* * * * * /home/ubuntu/BenchScripts/rRead.sh
Is there something I am missing ?
.sh file
#!/bin/bash
echo "Starting test" $(date +"%H:%M:%S") > rReadResults.txt
echo "Starting test" $(date +"%H:%M:%S") >> rRead.txt
sysbench --num-threads=1 --test=fileio --file-total-size=3G --file-test-mode=rndrd prepare
sysbench --num-threads=1 --test=fileio --max-time=300 --file-total-size=3G --file-test-mode=rndrd run >> rReadResults.txt
sysbench --num-threads=1 --test=fileio --file-total-size=3G --file-test-mode=rndrd cleanup
echo $(grep 'Total transferred' rReadResults.txt) >> rRead.txt
echo "--------------------------------------------------------------------------------" >> rRead.txt
rm rReadResults.txt
/home/ubuntu/BenchScripts/rRead.sh
? I am not sure which log crontab uses. Is there anything in/var/log/syslog
about failed crontab executions? – nobody Dec 02 '16 at 17:02sudo chmod +x rRead.sh
– troylatroy Dec 02 '16 at 17:05