- CronHowto
Contents
|
Introduction
Cron is a system daemon used to execute desired tasks (in the background) at designated times.
A crontab is a simple text file with a list of commands meant to be run at specified times. It is edited with a command-line utility. These commands (and their run times) are then controlled by the cron daemon, which executes them in the system background. Each user has a crontab file which specifies the actions and times at which they should be executed, these jobs will run regardless of whether the user is actually logged into the system. There is also a root crontab for tasks requiring administrative privileges. This system crontab allows scheduling of systemwide tasks (such as log rotations and system database updates).
More information can be found:
man crontab
or from the OpenGroup specifications.
An alternative in Gnome-based Ubuntu systems is to use the Gnome Scheduled tasks tool (from the gnome-schedule package) in Applications --> System Tools.
Using Cron
To use cron for tasks meant to run only for your user profile, add entries to your own user's crontab file. Start the crontab editor from a terminal window:
crontab -e