开发者

how to run drupal aggregator outside cron.php?

i am using aggregator core module in drupal and i need to schedule it in crontab but outside cron.php i tried wget http://mywebsite.com/admin/content/aggregator/update/1

i got 403 forbidden error

i tried curl as well and it returns this as html part

  You are not authorized to access this page

although i have set the permission of this module t开发者_如何学Goo anonymous users!!

any idea is highly appreciated Thanks


Can you try this url http://mywebsite.com/admin/config/services/aggregator/update/1 ?


There are alternatives to the default cron which runs all cron implementations, for example Elysia Cron, see kbahey's blog post about it.

At least that's what I assume you want to do, run it more or less often than the other cron implementations.


Thanks All for your help!! i solved my problem by scheduling the following code as a cron and thus it runs aggregator cron as i want:

<?php
require_once '/var/www/htdocs/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
module_invoke('aggregator','cron');
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜