Add 10 minute cron job to Ubuntu package
cron, debian, linux, ubuntu
Solution
Your package can simply put a file in `/etc/cron.d/`
The text file should contain something like this, to run a command every 10 minutes:
*/10 * * * * root /path/to/command
Google 'cron format' for more info, and yes, this belongs in askubuntu or superuser.
You need to add the username (root) to the line, as shown above. Apparently this is necessary for files in cron.d, but I can't find a definitive document.**
cron should pick this new job up automatically.
Problem
I need to install some cron jobs with my Ubuntu installation package. The ones that run every day or hour are easy: I can just create a symlink from `/etc/cron.daily` to my script. However, I also have a script that I would like to run every 10 minutes. There is no such thing as `/etc/cron.minutely`. Also I am not sure how to edit crontab without using the interactive editor (`crontab -e`). What is the best way to go about this?