Fix cron with spaces in the name and enable debugging for cron.

This commit is contained in:
Alexandre Rosenfeld
2011-01-21 22:11:13 +00:00
parent 4398b907f1
commit 4510d96cff
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
<?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
$mem_limit = (int) ini_get('memory_limit');
@@ -68,14 +70,14 @@ if( $WS=='' ){
if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
$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 {
$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.");

View File

@@ -1,4 +1,6 @@
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
ini_set('memory_limit', '128M');
if (!defined('SYS_LANG')) {