ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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'
;
21
ilCronManager::runActiveJobs
();
22
23
$cron
->logout();
24
}
25
catch
(
Exception
$e)
26
{
27
$cron
->logout();
28
29
echo
$e->getMessage().
"\n"
;
30
exit
(1);
31
}
ilCronManager\runActiveJobs
static runActiveJobs()
Run all active jobs.
Definition:
class.ilCronManager.php:16
$_SERVER
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Definition:
tcpdf_autoconfig.php:54
$cron
if($_SERVER['argc']< 4) $cron
Definition:
cron.php:14
echo
php
exit
exit
Definition:
old-extract-schema.php:8
ilCronStartUp
Handles cron (cli) request.
Definition:
class.ilCronStartUp.php:11
Exception
cron
cron.php
Generated on Fri Feb 21 2025 19:00:50 for ILIAS by
1.8.13 (using
Doxyfile
)