ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
10 echo "Usage: cron.php username password client\n";
11 exit(1);
12}
13
14$cron = new ilCronStartUp($_SERVER['argv'][3], $_SERVER['argv'][1], $_SERVER['argv'][2]);
15
16try {
17 $cron->initIlias();
18 $cron->authenticate();
19
20 include_once './Services/Cron/classes/class.ilCronManager.php';
22
23 $cron->logout();
24}
25catch(Exception $e)
26{
27 $cron->logout();
28
29 echo $e->getMessage()."\n";
30 exit(1);
31}
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:14
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']