Ubuntu: How to Force a Silent Cron | The Rugged Rock of Craig

Ubuntu: How to Force a Silent Cron Posted on Tuesday, January 4, 2011 by Craig Lotter By default, cron actions that produce output generates emails that get sent to the system administrator. If we don’t particularly want this behaviour, we need to terminate our function calls with a specific character sequence, which looks as follows: […]

X.Y.Z: How to debug or test cron script

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 […]