Main image
19th November
2008
written by Nick Anderson

I typically use /etc/cron.d to store all of my system crontabs. I recently ran into an issue that I had either not run into before, or fixed and paid no attention to. Files stored in /etc/cron.d/ or any /etc/cron.* directory need to adhear to the run-parts Debian cron script namespace which consists is

(^[a-z0-9][a-z0-9-]*$)

for the regex impared this does not include the dot character. If you have a file in /etc/cron.d/ that has a dot in it it will not be evaluated by cron. I have seen mention of underscore not being valid but in my testing underscore was not an issue, only dots.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Reddit
  • Slashdot
  • TwitThis
Tags: ,

3 Comments

  1. Swati Windows XP Firefox 3.0.8
    08/04/2009

    You saved my day !! :)

  2. Swati Windows XP Firefox 3.0.8
    08/04/2009

    and luckily my search was …. “cron.d gotchas” :)

  3. Ryan Debian Unknow
    22/04/2009

    This is so stupid…this type of crap has wasted a lot of time for a lot of people,

Leave a Reply