ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
tail.php
Go to the documentation of this file.
1#!/usr/bin/env php
2<?php
3
13if ($argc < 2) {
14 echo "Usage: " . $argv[0] . " filename\n";
15 exit(1);
16}
17
18require __DIR__ . '/../vendor/autoload.php';
19
20$tail = popen('tail -fn0 ' . escapeshellarg($argv[1]), 'r');
21
23
24 echo fread($tail, 4096);
25
26});
27
28$loop->run();
exit
Definition: backend.php:16
An exception for terminatinating execution or to throw for unit testing.
addReadStream($stream, callable $cb)
Adds a read stream.
Definition: functions.php:72
global $argv
Definition: svg-scanner.php:41
$tail
Definition: tail.php:20