logprn1
Merge common-log format web logs based on time-stamps
Usage
logprn logfile
idle-time
[:max-wait]
command
Overview
The logprn program is designed to print new data that is appended to log files. It will wait until a specified amount of time has elapsed since the last write to the file before printing the data. It will print the data by pipeing it to a specified command. The command will be run by popen(3) so the usual shell commands will operate (whether this is a bug or a feature is a matter of opinion).
Options
logfile-
specifies a file to read data from. It should be a regular file not a pipe, device, or anything else.
idle-time
max-wait
command
Exit status
0 Never happens, this program will run forever.
1 Bad command-line parameters or couldn't stat the log file on startup - couldn't start the program.
2 File disappeared or became unreadable at run-time.
3 Can't run the specified command.
Releases
Unchanged in 11 releases since Debian 3.0 (Woody).