ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
tail.php
Go to the documentation of this file.
1
#!/usr/bin/env php
2
<?
php
3
13
if
($argc < 2) {
14
echo
"Usage: "
.
$argv
[0] .
" filename\n"
;
15
exit
(1);
16
}
17
18
require __DIR__ .
'/../vendor/autoload.php'
;
19
20
$tail
= popen(
'tail -fn0 '
. escapeshellarg(
$argv
[1]),
'r'
);
21
22
\Sabre\Event\Loop\addReadStream
(
$tail
,
function
() use (
$tail
) {
23
24
echo
fread(
$tail
, 4096);
25
26
});
27
28
$loop->run();
$argv
global $argv
Definition:
svg-scanner.php:41
$tail
$tail
Definition:
tail.php:20
Sabre\Event\Loop\addReadStream
addReadStream($stream, callable $cb)
Adds a read stream.
Definition:
functions.php:72
echo
exit
exit
Definition:
backend.php:16
php
libs
composer
vendor
sabre
event
examples
tail.php
Generated on Thu Jan 30 2025 19:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)