Closed (fixed)
Project:
Twitter
Version:
6.x-2.6
Component:
Twitter Actions
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2009 at 23:14 UTC
Updated:
25 Jan 2013 at 22:17 UTC
Although I have set a regular cron job to run periodically, I would like also to force a cron run on sending a tweet by drupal. How do I do this? Thanks!
Comments
Comment #1
Michsk commentedmy tweets are send automatically... no cron needed
Comment #2
amir simantov commentedI may have not explained it well enough. Of course, the tweets are sent automatically. However, I am using the accompanied view to show recent posts to twitter. In order for this view (a block) to be refreshed I need to run cron. So I want to run cron automatically after a post to twitter.
Comment #3
manumilou commentedI am also using a view to display my recent posts on Twitter. The solution i choose to update my view is to run the cron job (cron.php at the root of the drupal installation) in crontab. I configured the cron job to run every hour. You may set here whatever time you want.
Here is my crontab (
crontab -eon Linux):If you want to run this script just after posting a tweet from your website, the trigger module should be able to do that.
Manu
Comment #4
YK85 commented+1 subscribing
Comment #5
Michsk commentedAmir, this woulde be posible with rules i guess. After posting a message to twitter >> run cron.
Comment #6
arcall commentedUse trigger module to launch a PHP script on published content ( blog, news, event, etc ) and add the following PHP code.
Hope it helps.
Comment #7
mrf commentedLooks like there a lot of solutions here already. I'd add drupal.org/project/elysia_cron to the mix as a possibility.