Skip to main content

Posts

Showing posts from April, 2012

Configuring cron jobs using the cron command

source Cron is a daemon that executes commands at specified intervals. These commands are called "cron jobs." Cron is available on Unix, Linux and Mac servers. Windows servers use a Scheduled Task to execute commands. For a modest personal site, you might set up this cron job to run once a day. For a more active site you might want to run that job more often—perhaps every few hours or every hour. This regular visit will tell Drupal to perform its periodic tasks, and this will help keep your system running smoothly. There is a video, How To: Setting up Drupal's Cron that talks about cron and shows various ways of configuring it. The cron command In the following example, the crontab command shown below will activate the cron tasks automatically on the hour: 0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php In the above sample, the 0 * * * * represents when the task should happen. The first figure represents minutes – in this cas