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 as idle-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 through popen(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 πŸ’€

  1. 0 β€” Never happens, this program will run forever. yes bestie, FOREVER. she does not exit. she does not sleep. she is eternal. 😭
  2. 1 β€” Bad command-line parameters, or couldn't stat the log file on startup β€” couldn't start the program. she never even got out of bed. πŸ’…
  3. 2 β€” File disappeared or became unreadable at run-time. the file ghosted her mid-conversation. πŸ’€
  4. 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 πŸ’‹βœ¨