-rw-r--r--. 1 myusername developers 169 May 17 09:01 build.sh
Why is it I can execute the build.sh script from the command line if it does not have execute permissions but when crontab tries to execute it, it fails?
You can't execute that from the command line, because it doesn't have execute permissions.
What you can do, is to source it from the command line,
which causes the current shell to execute the commands in the file as if they were being typed on the command line.
You can't do this from cron, so you'll need to give the script execute permissions (
You can also 'run' scripts by executing a shell and passing the script to it, such as,
This is because you're executing