Difference between revisions of "Crontab"

From WikiDLXTV
Jump to: navigation, search
(Initial release)
 
m (change nano to crontab -e)
Line 8: Line 8:
  
 
To configure tasks to be executed, you should execute the following commands through telnet/ssh:
 
To configure tasks to be executed, you should execute the following commands through telnet/ssh:
  touch /conf/root
+
  crontab -e
nano /conf/root
+
  
Use the [http://tuxradar.com/content/text-editing-nano-made-easy nano] text editor to set up our tasks. The crontab syntax is explained [http://en.wikipedia.org/wiki/Cron#Examples here]
+
Only use the crontab editor to set up our tasks. The crontab syntax is explained [http://en.wikipedia.org/wiki/Cron#Examples here]
  
 
== Common issues ==
 
== Common issues ==

Revision as of 13:08, 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:

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