Initial checkin v13.0
This commit is contained in:
18
src/crons/cronRunner.php
Normal file
18
src/crons/cronRunner.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if(php_sapi_name() != 'cli'){
|
||||
exit();
|
||||
}
|
||||
include "../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 = CronUtils::getInstance($basePath, dirname(__FILE__)."/".$file);
|
||||
|
||||
echo "Cron Runner created \r\n";
|
||||
|
||||
$cronUtils->run();
|
||||
|
||||
Reference in New Issue
Block a user