environment

cron.*ly and the lost scripts

The problem is quite simple: you need to run a script on a regular basis, so you put it in one of the directories of the /etc/cron.{daily,weekly,monthly} hierarchy but for some reason cron just seems to ignore it.

First, check that the script is really where you think it is, that it is executable (or else chmod a+x yourscript to make it so) and that it’s name does contain only letters, numbers, underscores and hyphens. In fact, a script named run.me won’t be run because of the dot.

You can get the list of the scripts that are eligible to run with:

$ run-parts --test /etc/cron.daily

You can change the argument /etc/cron.daily to any other directory.