Skip to content. | Skip to navigation


Encryptec Limited Online

 Last updated Sunday, 20 Jul 2008 13:24
Sections
Document Actions

PloneRSS and CRON

This How-to applies to: Any version.

Howto automatically update PloneRSS feeds using CRON

This is a relatively straightforward operation on a Unix system, if any Windows users would like to contribute an equivalent mechanism then feel free.

Prerequisites

  • CRON
  • wget

Both of these should be installed by default on a Unix system. (if not :: Use the web!)

The Manager

You will need to log into Plone as a Manager and add an item of type RSS Manager. I recommend you put this in your root folder and once created, rename it to 'rss_manager'.

Once created, viewing the RSS manager should try to update any existing fields (hopefully by this point you've created a few). This screen gives you a fair bit of detail (see the screenshots) but of course updates are only activated when you view the page.

Next, add a user called cron to your Plone instance and give cron Manager privileges. (please use 'cron', this user id is hard-coded into the software)

Now you can create an appropriate crontab entry by typing;

crontab -e

then enter;

# m h  dom mon dow   command
MAILTO=<your_email_address>
0,15,30,45 * * * * wget <URL_of_your_rss_manager>/rss_manager_cron --output-file=- --output-document=-

Which will attempt to update your feeds every 15 minutes. The URL of your rss manager might be something like;
http://my_domain.com/rss_manager  (then you add /rss_manager_cron on top of this)

By default this will try an anonymous request, which will fail due to lack of permission. To fix this, edit the .wgetrc file in your home directory (this will be /root/.wgetrc if you've followed the instructions above) and add;

user=cron
password=<cron_s_password>

At which point you should be done .. every 15 mins you should see an email telling you what has been updated. Once you're happy that things are working Ok, you can filter these emails however you wish. If you don't want to see the emails, simply add the following to the wget line in the crontab statement;

> /dev/null 2>&1

..

printer ink cartridge
Get that quality printer ink cartridge online. Take advantage of our great prices and exclusive special offers. Compare and contrast!
Web Site Builder
Are you a small business looking for a flexible and catchy website? Our web site builder is the ideal tool! See what we can do for you!
COMPUTER SUPPORT
Still struggling with the same computer trouble? Why not get the experts to sort it out?
Invoice Management
Find invoice management software for your company. Click the link above.
Laptops Shop
Laptops are stylish, affordable and sophisticated come and check some of these great prices from the Laptops Shop.
Epson Ink Cartridges
All our Epson compatible ink cartridges are made from brand new parts and contain premium quality ink. We also stock branded Epson ink cartridges
Dedicated SERVERS
Before renewing your contract with the company hosting your current server check out this site.
dell inspiron
For laptops with the most advanced technology and best price offers, go to Shopping.com.
Online Backup...
Automatic online backup means no more lost files.