We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

FeedGrab updating automatically with CRON job

Development and Programming

adro's avatar
adro
110 posts
16 years ago
adro's avatar adro

I’m using FeedGrab to post external feeds to the site and based on Andrew Weavers suggestion, I’m trying to use a CRON job to periodically hit the page that refreshes the rss feed. I’ve tried absolutely everything and I cannot get it to work.

I’ve successfully run several cron jobs to the correct url but the entries will not update. Here are some examples of what I tried:

curl http://www.sanctionsnow.com/index.php/blog/bookmarks-go/
curl -o --url /dev/null http://www.sanctionsnow.com/index.php/blog/bookmarks-go/
php http://www.sanctionsnow.com/index.php/blog/bookmarks-go/
wget http://www.sanctionsnow.com/index.php/blog/bookmarks-go/

None of it will get the feed to refresh and add the new posts. I’ve even tried using server paths directly to the .php file, but that doesn’t work either…Am I missing something here?

Hope someone can help me out, I’m all out of ideas!

       
Ryan Irelan's avatar
Ryan Irelan
444 posts
16 years ago
Ryan Irelan's avatar Ryan Irelan

You probably need to precede the “curl” command with the path to that command. CRON doesn’t know about your environment paths. So, something like:

/usr/bin/curl http://www.sanctionsnow.com/index.php/blog/bookmarks-go/

Your path may differ, of course.

       
adro's avatar
adro
110 posts
16 years ago
adro's avatar adro

Thanks for that! I actually finally got it working with:

wget -q http://www.sanctionsnow.com/blog/bookmarks-go

I was wondering if maybe you’d have experience with something else that I noticed with FeedGrab. I have LG Htacess Generator v1.0.0 and when its enable at the same time as FeedGrab, and I go into the Plugin Manager, I get this error at the top:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sanction/public_html/sanctionsys/plugins/pi.feedgrab.php:3110) in /home/sanction/public_html/sanctionsys/extensions/ext.lg_htaccess_generator_ext.php on line 672

Any idea whats going on there? I’m completely stumped…

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.