Cannot run bash script from crontab when it works from command line bash
问题 I have a strange problem of being to able to run a bash script from commandline but not from the crontab entry for root. I am running Ubuntu 12.04. * * * * 1-5 root /home/xxxxxx/jmeter/VerificationService-0.0.1-SNAPSHOT/jmeter-cron-randomise.sh >> /home/xxxxxxx/jmeter/VerificationService-0.0.1-SNAPSHOT/cron.log If I run the script from the cmd line using bash, it works fine but sh fails with following error: > jmeter-cron-randomise.sh: 7: jmeter-cron-randomise.sh: arithmetic > expression: