ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
cron.php
Go to the documentation of this file.
1 <?php
2 chdir(dirname(__FILE__));
3 chdir('..');
4 
5 
6 include_once './Services/Cron/classes/class.ilCronStartUp.php';
7 
8 if ($_SERVER['argc'] < 4) {
9  echo "Usage: cron.php username password client\n";
10  exit(1);
11 }
12 
13 $cron = new ilCronStartUp($_SERVER['argv'][3], $_SERVER['argv'][1], $_SERVER['argv'][2]);
14 
15 try {
16  $cron->initIlias();
17  $cron->authenticate();
18 
19  include_once './Services/Cron/classes/class.ilCronManager.php';
21 
22  $cron->logout();
23 } catch (Exception $e) {
24  $cron->logout();
25 
26  echo $e->getMessage() . "\n";
27  exit(1);
28 }
static runActiveJobs()
Run all active jobs.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
if($_SERVER['argc']< 4) $cron
Definition: cron.php:13
Handles cron (cli) request.