WRITELOG(8)
β¨ WRITELOG π
okay so bestie, this is the man page for the writelog command from InterNetNews β it's literally just "Write or mail a log entry" and it's about to be your new fave little script π
πΈ SYNOPSIS πΈ
writelog name text
two arguments, that's it, no cap π
π DESCRIPTION π
The writelog script is used to write a log entry or send it as mail. That's the whole vibe. β¨
The name parameter specifies the name of the log file where the entry should be written. Easy.
BUT β plot twist π«’ β if name is the word "mail", then the entry is sent as the subject of a mail to the newsmaster address specified with --with-news-master at configure time (the default address is "usenet"). iykyk π¬
And if name is "/dev/null", the script does nothing and exits. Truly the "not me, not today" of file paths ππ
The data that is written to a log file consists of the text given on the command line, followed by standard input indented by four spaces. Like, four whole spaces. Respect the indent π«Ά
When sent by mail, the subject is text and the body is standard input without indentation. Different format, different moment, same icon energy π
shlock(8) is used to avoid simultaneous updates to a single log file. Basically it's the bouncer at the club keeping two processes from writing over each other at the exact same time β obsessed π§
π HISTORY π
Written by Landon Curt Noll <chongo@toad.com> and Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Rewritten into POD by Julien Elie. legends, all of them π
β SEE ALSO β
go read those too, bestie, they're all part of the ecosystem πΈ
fr fr that's the whole page β no hidden flags, no secret defaults, justnameandtextdoing their thing π
mwah π this cutie was brought to you by INN 2.7.4, dated 2025-05-09 β slay, see you in the next man page! π¦
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms