- Add “2>&1 >> cron.log” to redirect stderr and log output. “>>” means appending while “>” means overwriting.
- Check the “+x” mode of the script.
- Check the relative path in both the script and the cron config. Cron may run in a different directory.
- Check the encoding of the script. Cron may run in an environment different from bash.
- Check the privileges related with the files used in the script.