.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "WRITELOG 8" .TH WRITELOG 8 2024-04-01 "INN 2.7.2" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME writelog \- Write or mail a log entry .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBwritelog\fR \fIname\fR \fItext\fR .SH DESCRIPTION .IX Header "DESCRIPTION" The \fBwritelog\fR script is used to write a log entry or send it as mail. .PP The \fIname\fR parameter specifies the name of the log file where the entry should be written. If it is the word \f(CW\*(C`mail\*(C'\fR, then the entry is sent as the subject of a mail to the newsmaster address specified with \&\fB\-\-with\-news\-master\fR at configure time (the default address is \f(CW\*(C`usenet\*(C'\fR). .PP If \fIname\fR is \f(CW\*(C`/dev/null\*(C'\fR, the script does nothing and exits. .PP The data that is written to a log file consists of the \fItext\fR given on the command line, followed by standard input indented by four spaces. When sent by mail, the subject is \fItext\fR and the body is standard input without indentation. .PP shlock(1) is used to avoid simultaneous updates to a single log file. .SH HISTORY .IX Header "HISTORY" Written by Landon Curt Noll and Rich $alz for InterNetNews. Rewritten into POD by Julien Elie. .SH "SEE ALSO" .IX Header "SEE ALSO" innd(8), innstat(8), news.daily(8), newslog(5), nnrpd(8), scanlogs(8).