How to make cron run on sending to twitter?
Amir Simantov - November 11, 2009 - 23:14
| Project: | |
| Version: | 6.x-2.6 |
| Component: | Twitter Actions |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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!

#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