Drupal cron from commandline

If you want to add a cronjob without resorting to the normal methods: http://drupal.org/cron using wget, lynx or curl from the commandline you will need the following script.

You can call this script from the commandline: php /path/to/your/drupal/site/cron-cli.php hostname

I built upon the script from http://srhaber.com/blog/2009/02/11/command-line-cron-for-drupal/ and added feedback for the usage.

You will need a php installation on your server that is compiled for cli functionality. http://nl.php.net/manual/en/features.commandline.php

VoorbeeldweergaveBijlageGrootte
cron-cli.zip554 bytes
jadwigo's picture

Dutch version here:

Dutch version here: http://www.twokings.nl/?e=130

Tags for Drupal cron from commandline