logprn(1)
πΈ logprn(1) β the logtools era π
okay bestie, sit down, hydrate, because we're talking about logprn from the logtools collection and honestly? she's a whole vibe. she sits there, she watches your log files, and she merges Common-Log Format web logs based on time-stamps. no cap. β¨
β¨ NAME β¨
logprn β merge Common-Log Format web logs based on time-stamps π¦
π SYNOPSIS π
logprn logfile idle-time[:max-wait] command
π DESCRIPTION π
So here's the tea π. The logprn program is literally designed to print new data that gets appended to log files. That's her whole personality.
She'll wait until a specified amount of time has elapsed since the last write to the file before she prints anything β like she's giving the file a little moment to finish talking before she repeats it, which honestly? respectful. π«Ά
Then she prints the data by pipeing it to a specified command. And the command gets run by popen(3), so the usual shell commands will operate. Whether that's a bug or a feature is, and I quote the ancestors here, a matter of opinion. π
π OPTIONS π
logfileβ specifies a file to read data from. And listen, she's picky in a valid way: it should be a regular file, not a pipe, device, or anything else. she said know your type. πidle-timeβ this is the one your synopsis shows off asidle-time[:max-wait], so you already know she's the main character here. the manpage does not elaborate further, and honestly, respect the mystery. πmax-waitβ same situation bestie. the original lists her and moves on. no notes, no extra lore, we do not invent lore. βcommandβ also listed, also un-elaborated in the original. the DESCRIPTION does tell you she gets run throughpopen(3)though, so there's that. π₯
lowkey the OPTIONS section is giving "list of names, zero gossip" and I'm just the messenger π
π EXIT STATUS π
0β Never happens, this program will run forever. yes bestie, FOREVER. she does not exit. she does not sleep. she is eternal. π1β Bad command-line parameters, or couldn'tstatthe log file on startup β couldn't start the program. she never even got out of bed. π2β File disappeared or became unreadable at run-time. the file ghosted her mid-conversation. π3β Can't run the specified command. π₯²
π AUTHOR π
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>. give her her flowers, she earned them π
π BUGS π
Uses popen(3) β but the author considers this a feature not a bug. and honestly? icon behaviour. we love a self-aware king. π
π¦ SEE ALSO π¦
version 0.06, by Russell Coker <russell@coker.com.au>, living in the logtools family β that's the whole sign-off bestie, mwah πβ¨
π¦ where this page comes from
- debian bookworm: logtools 0.13e+nmu2
- debian trixie: logtools 0.13e+nmu3 Β· GPL-2.0-only
- ubuntu jammy: logtools 0.13e+nmu2
- ubuntu noble: logtools 0.13e+nmu2
- ubuntu questing: logtools 0.13e+nmu3
- ubuntu resolute: logtools 0.13g Β· GPL-2.0-only
- ubuntu stonking: logtools 0.13g Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms