0

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
troylatroy
  • 1,275
DugD
  • 1

0 Answers0