The cron system works by reading a crontab files found in various directories on the system. The following directories house root and system crontabs:
/etc
/etc/cron.d
/etc/cron.daily
/etc/cron.hourly
/etc/cron.monthly
/etc/cron.weekly
As the root user you can directly edit the /etc/crontab file, but using the crontab system is a much better way to create new cron jobs.
Once a cron job is created with the crontab system, that job will be executed at the precise time configured in the entry. Now this brings up an all-to-often confusing issue - time. The cron system looks at time like this:
Minute(0-59)
Hour (0-23)
Day of the month (1-31)
Month (1-12)
Day of the week (0-6 with Sunday being 0)
Where you need to configure a section of time, you would use the numerical value. If there was not a value to configure, an "*" would be put in its place. So if you needed to configure a cron job to be executed at 7:01 am on the th of October you would enter:
01 7 30 10 *
But that is only part of the entry. The next portion would be the command that needed to run. So, if you had a script you had written(we'll call it script and place it in home directory of the user jlwallen) at this time the entry would look like:
01 7 30 10 * /home/jlwallen/script