示例#1
0
 public static function getInstance($clientBasePath, $cronFile)
 {
     if (empty(self::$me)) {
         self::$me = new CronUtils($clientBasePath, $cronFile);
     }
     return self::$me;
 }
示例#2
0
<?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();
示例#3
0
<?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 = CronUtils::getInstance($basePath, $file);
echo "Cron Runner created \r\n";
$cronUtils->run();