Posted by Amir Simantov on November 11, 2009 at 11:14pm
Jump to:
| Project: | |
| Version: | 6.x-2.6 |
| Component: | Twitter Actions |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
my tweets are send automatically... no cron needed
#2
I 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.
#3
I 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):# m h dom mon dow command0 * * * * /usr/bin/wget -O - -q -t 1 http://manumilou.net/cron.php
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
#4
+1 subscribing
#5
Amir, this woulde be posible with rules i guess. After posting a message to twitter >> run cron.
#6
Use trigger module to launch a PHP script on published content ( blog, news, event, etc ) and add the following PHP code.
<?php$cmd = 'wget -O - -q -t 1 http://www.yoursite.com/cron.php';
exec($cmd);
?>
Hope it helps.