initialize(); $config = CRM_Core_Config::singleton(); // this does not return on failure CRM_Utils_System::authenticateScript(TRUE); //log the execution time of script CRM_Core_Error::debug_log_message('action.cronjob.php'); } } function initialize() { require_once '../civicrm.config.php'; require_once 'CRM/Core/Config.php'; $config = CRM_Core_Config::singleton(); } /** * @param null $now */ public function run($now = NULL) { require_once 'CRM/Core/BAO/ActionSchedule.php'; CRM_Core_BAO_ActionSchedule::processQueue($now); } } $cron = new CRM_Cron_Action(); $cron->run();