Crontab

From WikiDLXTV
Revision as of 13:08, 27 August 2011 by B-rad.cc (Talk | contribs) (change nano to crontab -e)

Jump to: navigation, search

What does crontab do

Cron is a UNIX daemon that executes programs/scripts on a schedule. Crontab is a configuration file used by the cron daemon that allows users to set up their periodic tasks.

Configuration

You can turn on the cron daemon from the webend, or by running the following command through telnet/ssh:

config_tool -c CROND='ON'
/etc/init.d/S90crond start 

To configure tasks to be executed, you should execute the following commands through telnet/ssh:

crontab -e

Only use the crontab editor to set up our tasks. The crontab syntax is explained here

Common issues

If, for some reason, the crontab is not picked up on system startup, you can do the following:

# force-load the user's crontab in a subshell, in the background
(sleep 120; crontab -u root /conf/root)&

Useful links