ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
cron.php
Go to the documentation of this file.
1
<?php
2
chdir(dirname(__FILE__));
3
chdir(
'..'
);
4
5
include_once
'./Services/Cron/classes/class.ilCronStartUp.php'
;
6
7
if
(
$_SERVER
[
'argc'
] < 4) {
8
echo
"Usage: cron.php username password client\n"
;
9
exit
(1);
10
}
11
12
$client
=
$_SERVER
[
'argv'
][3];
13
$login
=
$_SERVER
[
'argv'
][1];
14
$password
=
$_SERVER
[
'argv'
][2];
15
16
$cron
=
new
ilCronStartUp
(
17
$client
,
18
$login
,
19
$password
20
);
21
22
try
{
23
$cron
->authenticate();
24
25
$cronManager
=
new
ilStrictCliCronManager
(
26
new
ilCronManager
(
$DIC
->settings(),
$DIC
->logger()->root())
27
);
28
$cronManager
->runActiveJobs();
29
30
$cron
->logout();
31
}
catch
(
Exception
$e
) {
32
$cron
->logout();
33
34
echo $e->getMessage() .
"\n"
;
35
exit
(1);
36
}
$login
$login
Definition:
cron.php:13
exit
exit
Definition:
login.php:29
$client
if($_SERVER['argc']< 4) $client
Definition:
cron.php:12
Vendor\Package\$e
$e
Definition:
example_cleaned.php:31
ilStrictCliCronManager
Class ilStrictCliCronManager.
Definition:
class.ilStrictCliCronManager.php:8
ilCronManager
Cron management.
Definition:
class.ilCronManager.php:10
$cronManager
$cronManager
Definition:
cron.php:25
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:10
$cron
$cron
Definition:
cron.php:16
$password
$password
Definition:
cron.php:14
$DIC
$DIC
Definition:
xapitoken.php:46
ilCronStartUp
Handles cron (cli) request.
Definition:
class.ilCronStartUp.php:11
Exception
cron
cron.php
Generated on Sat Apr 5 2025 20:00:55 for ILIAS by
1.8.13 (using
Doxyfile
)