CRON Configuration

From LinuxFanBoy

Jump to: navigation, search

The crond and at program and CRON services are used make application systems run automatically at any tiven time.

Cron Config Files

 /etc/crontab
 /etc/cron.daily
 /etc/cron.hourly
 /etc/cron.monthly
 /etc/cron.weekly
 /var/spool/cron - directory containing user cron files

Cron setup

The genus of the cron configuration is how you can control when an event happens with just a few settins. Each line of the contab file start with these.

Minute, hour, day of the month, month, day of the week and then the command

0 0 * * * DO THIS

The at command will run a job once. The atq command will show at list of at commands to be run. The atrm command can be used to remove a at command in the queueu.

Cron security

These files, like host.allow and host.deny, control who can run con jobs.

/etc/cron.allow
/etc/cron.deny
Personal tools