Calling the cron.php of a Drupal site is fairly easy. You just have to put something similiar into your server's
/etc/crontab:
0 * * * * www-data test -x /usr/bin/wget && /usr/bin/wget --bind-address 127.0.0.1 -t 1 "http://example.com/cron.php"
Or you can place this wget call in a file in
/etc/cron.hourly.
However on a server with quite some Drupal sites (and possibly a number of virtualhosts) the maintenance of these cron.php calls in your crontab becomes very annoying (and it is prone to errors). On a busy development server Drupal sites come and go every day. So why not do these calls automatically? The attached script does just that.
Recent comments
2 weeks 3 days ago
4 weeks 6 days ago
4 weeks 6 days ago
5 weeks 4 days ago
5 weeks 5 days ago
6 weeks 13 hours ago
6 weeks 15 hours ago
6 weeks 22 hours ago
6 weeks 1 day ago
6 weeks 1 day ago