Files
icehrm/crons/cronRunner.php
2017-09-03 20:39:22 +02:00

19 lines
379 B
PHP

<?php
if(php_sapi_name() != 'cli'){
exit();
}
include dirname(__FILE__)."/../config.base.php";
ini_set('error_log',CRON_LOG);
$opts = getopt('f:p:');
$file = $opts['f'];
$basePath = $opts['p'];
include(dirname(__FILE__) . "/../Classes/CronUtils.php");
$cronUtils = \Classes\Cron\CronUtils::getInstance($basePath, $file);
echo "Cron Runner created \r\n";
$cronUtils->run();