I added a little script to /etc/cron.daily, sayhello.sh, while I sorted out how to integrate my backup script (tresync) into the list of cron jobs run daily.
The odd thing is, the script never ran. I could run it as “
sudo /etc/cron.daily/sayhello.sh“, but it didn’t run with the rest of the cron jobs.
Lo and behold, I found the answer, which is actually on the man page for
If neither the –lsbsysinit option nor the –regex option is given then the names must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.
Which means: you cannot have a dot in the file name.
That seems quite counterintuitive, but perhaps there is a reason that I just don’t understand.