How to debug or test cron script If your simple cron script (/etc/cron.daily, etc/cron.hourly etc) does not run as expected, do the following: 1. be sure to have ‘#!/bin/sh’ as the first line 2. make sure the script’s name does not contains ‘.’. for example, you should rename ‘yourscript.sh’ to ‘yourscript’. 3. use absolute path […]