如何在 cron.php 之外运行 drupal 聚合器?
我在 drupal 中使用聚合器核心模块,我需要在 crontab 中但在 cron.php 之外安排它 我尝试了 wget http://mywebsite.com/admin/content/aggregator/update /1
我收到 403 禁止错误
我也尝试了curl,它返回了html部分,
You are not authorized to access this page
尽管我已将此模块的权限设置为匿名用户!
任何想法都受到高度赞赏 谢谢
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 to anonymous users!!
any idea is highly appreciated
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以尝试这个网址 http://mywebsite.com/admin/config/services/聚合器/更新/1 ?
Can you try this url http://mywebsite.com/admin/config/services/aggregator/update/1 ?
除了运行所有 cron 实现的默认 cron 之外,还有其他选择,例如 Elysia Cron,请参阅 kbahey 关于它的博客文章。
至少这就是我假设你想要做的,比其他 cron 实现或多或少地运行它。
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.
感谢大家的帮助!
我通过将以下代码安排为 cron 解决了我的问题,因此它按照我的需要运行聚合器 cron:
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: