Difference between revisions of "Crontab"
From WikiDLXTV
(Initial release) |
(No difference)
|
Revision as of 03:44, 27 August 2011
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:
touch /conf/root nano /conf/root
Use the nano text 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:
- create a /conf/S99user-script file
- append the following commands to the end of the file and save it
# force-load the user's crontab in a subshell, in the background (sleep 120; crontab -u root /conf/root)&