Fix cron with spaces in the name and enable debugging for cron.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
error_reporting(E_ALL);
|
||||||
ini_set('memory_limit', '300M'); // nore: this may need to be higher for many projects
|
ini_set('memory_limit', '300M'); // nore: this may need to be higher for many projects
|
||||||
$mem_limit = (int) ini_get('memory_limit');
|
$mem_limit = (int) ini_get('memory_limit');
|
||||||
|
|
||||||
@@ -68,14 +70,14 @@ if( $WS=='' ){
|
|||||||
|
|
||||||
if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
|
if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
|
||||||
$cws++;
|
$cws++;
|
||||||
system("php -f ".dirname(__FILE__).PATH_SEP."cron_single.php $sObject \"$sDate\" $argsx", $retval);
|
system("php -f \"".dirname(__FILE__).PATH_SEP."cron_single.php\" $sObject \"$sDate\" $argsx", $retval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$cws = 1;
|
$cws = 1;
|
||||||
system("php -f ".dirname(__FILE__).PATH_SEP."cron_single.php $WS \"$sDate\" $argsx", $retval);
|
system("php -f \"".dirname(__FILE__).PATH_SEP."cron_single.php\" $WS \"$sDate\" $argsx", $retval);
|
||||||
}
|
}
|
||||||
eprintln("Finished $cws workspaces processed.");
|
eprintln("Finished $cws workspaces processed.");
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
ini_set('display_errors', 1);
|
||||||
|
error_reporting(E_ALL);
|
||||||
ini_set('memory_limit', '128M');
|
ini_set('memory_limit', '128M');
|
||||||
|
|
||||||
if (!defined('SYS_LANG')) {
|
if (!defined('SYS_LANG')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user