ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
cron.php
Go to the documentation of this file.
1<?php
2chdir(dirname(__FILE__));
3chdir('..');
4
5
6include_once './Services/Cron/classes/class.ilCronStartUp.php';
7
8if ($_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
15try {
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}
An exception for terminatinating execution or to throw for unit testing.
static runActiveJobs()
Run all active jobs.
Handles cron (cli) request.
if($_SERVER['argc']< 4) $cron
Definition: cron.php:13
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']