The documention for /etc/cron.d files says that it’s the same as /etc/crontab. And although this is true, most people are not used to adding the user in as the first argument before the script.

So when you use crontab -e:

10 * * * * /opt/myprog

When you put it in /etc/cron.d/myapp.crontab

10 * * * * root /opt/myprog

It’s a little annoying, and a comment in the documention as such would go a long way.

Cameron

This entry was posted by cameron on June 11, 2010 at 2:13 pm under centos, linux.
You can skip to the end and leave a response. Pinging is currently not allowed. Follow any responses to this entry through the RSS 2.0 feed.

One Comment

sl0n says:

Thanks for that hint! I spent quite some time figuring out what’s wrong with it ..