possible to clear and refresh feeds from command line?

awb7422 - August 19, 2007 - 17:58
Project:FooAggregator RSS aggregator.
Version:5.x-1.x-dev
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Would it be possible clear and refresh feeds from a command line? Perhaps using something like lynx to get the job done? Thanks for your help.

#1

alaa - August 20, 2007 - 14:20
Status:active» won't fix

you do know about drupal cron don't you? if not please read this handbook page.

fooaggregator refreshes feeds on every cron run, the number of feeds per cron runs is configurable.

as for refreshing or clearing a specific feed from the command line, you can use wget or lynx to visit
node/NID/refresh or node/NID/clear

but since only a user with "administer fooaggregator" permission can clear or refresh feeds you'll have to somehow make wget or lynx authenticate. one way to do this is make wget use the cookies.txt stored in your firefox profile directory.

 
 

Drupal is a registered trademark of Dries Buytaert.