ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
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 
16 try {
17  $cron->initIlias();
18  $cron->authenticate();
19 
20  include_once './Services/Cron/classes/class.ilCronManager.php';
22 
23  $cron->logout();
24 }
25 catch(Exception $e)
26 {
27  $cron->logout();
28 
29  echo $e->getMessage()."\n";
30  exit(1);
31 }
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:14
Handles cron (cli) request.