Enabling CivicSpace Automated Tasks: Configuring Cron Jobs

Some CivicSpace modules, such as search, notify and aggregator, have periodic tasks that must be triggered by the script cron.php included with your CivicSpace installation. You can do this manually in your browser by visiting your cron URL page (a blank page will display once the cron tasks have been executed).

However, the better way to do this is to have cron.php executed automatically using the Linux/UNIX crontab function.

  • The following example crontab line will activate the cron script
    on the hour:

    0 * * * * wget -O - -q http://www.example.com/cron.php

  • If your host has the text browser lynx on the system, make use of the file provided in your Drupal installation in scripts/. Edit scripts/cron-lynx.sh, subsituting the name of your site. Then setup a crontab every hour:

    00 * * * * /home/www/drupal/scripts/cron-lynx.sh

Alternatively, Drupal has a poormanscron module available for download. However, this module is much less efficient in terms of system resources compared to the methods described above. The poormanscron module checks to see if cron needs to run every single time a page is viewed on the site.

More information about cron is available in the adminstration help page and at the Drupal Handbook Cron system and crontab page.


liza's picture

Visit our sponsors

Fill up our coffee fund

BlogAds

Visit our sponsors

Who's online

There are currently 1 user and 796 guests online.

Online users

Get our Digestifs du jour

Nibble daily on our brainy goodness with our daily syndication digest. You'll receive an email with a list and links to the previous day's posts.



Powered by FeedBlitz

culturekitchens

The Publisher
Liza Sabater

Daily servings of political dissent
culturekitchen

Grassroots News and
Activism for New Yorkers

Daily Gotham

Feminist Bloggers
Network

BlogSheroes

A new kind of vouyerism
Voogling

Art + Code + Philosophy
Potatoland.blog

Got any dirt, tips, leads or money for us? Then drop us a line or two at editors [at] culturekitchen [dot] com or use our general contact form to reach everybody in the editorial team ASAP.


Member's articles and stories

More stories

Words to live by


A priest and a rabbi were travelling on a plane. After a while the priest turned to the rabbi and asked, "Is it still a requirement of your faith that you not eat pork?" The rabbi responded, "Yes, that is still one of our beliefs". The priest then asked, "Have you ever eaten pork?" To which the rabbi replied, "Yes, on one occasion I did succumb and tasted pork."

The priest nodded in understanding and went back to his reading.

After a while the rabbi asked the priest, "Father, is it still a requirement of your faith that you remain celibate?" The priest replied, "Yes that is still very much a part of our faith." The rabbi then asked him, "Father, have you ever fallen to the temptation of the flesh?" The priest replied, "Yes, rabbi, on one occasion I was weak and broke with my faith."

The rabbi nodded understandingly for an moment and then said, "A lot better than pork isn't it?"


Subscribe Buttons

Feed IconGoogleDeliciousYahoo!BloglinesNewsgatorMSNFeedsterAOLFurlRojoNewsburstPluckFeedFeedsAdd KinjaMultiRSSrMailRSSFwdBlogarithmSimplify