Proper form of cron of rss feed agreggator?

Creating and modifying plugins.
Post Reply
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Proper form of cron of rss feed agreggator?

Post by JACOBKELL » Sun Sep 28, 2008 2:35 pm

In details of rss agreggator it say agreggator can be called manualy over cron.But since this: http://domain.com/index.php?/plugin/aggregator
doesnt have php extension,it didnt worked with following line:
30 12 * * * /usr/bin/php /home/domain/public_html/index.php?/plugin/aggregator
I getting error no php file then.What would be proper form to call it?

User avatar
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse » Sun Sep 28, 2008 3:17 pm

I have not tried this, but how about wget.
Steve is occasionally blogging here

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert » Mon Sep 29, 2008 3:16 pm

Spot on, sonichouse. You just need to visit the page; for that you need a web browser. Several command-line browsers exist; wget is popular, but you can also check out curl, w3c, and lynx. The line in the cron file should call the browser and pass the URL you provided. You'll want the browser to exit when it's done, too, instead of staying up in interactive mode. This is often called "downloading" in the documentation.
Judebert
---
Website | Wishlist | PayPal

Post Reply