/ Published in: PHP
URL: http://dominiquedecooman.com/blog/how-run-drupal-cron-cli
Running php /path/to/your/site/cron.php will give an error. You need to create some php-file into root of your Drupal-site and put into it the code of this snippet. Then just add to your cronjob the full path to your php-script.
Expand |
Embed | Plain Text
<?php // $Id: cronlocal.php Exp $ /** * @file * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs). */ $path='/home/ddcooman/workspace/extranet-client/src/drupal'; include_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); drupal_cron_run(); ?>
You need to login to post a comment.
