writelog(8)

writelog8

Write or mail a log entry

Usage

writelog name text

Overview

The writelog script is used to write a log entry or send it as mail.

The name parameter specifies the name of the log file where the entry should be written. If it 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").

If name is "/dev/null", the script does nothing and exits.

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. When sent by mail, the subject is text and the body is standard input without indentation.

shlock(8) is used to avoid simultaneous updates to a single log file.

Releases

17 releases since Debian 1.3 (Bo); the text changed 9 times.

  1. 1.3–2.1
  2. 2.2
  3. 3.0
  4. 3.1
  5. 4.0–8
  6. 9
  7. 10–11
  8. 12
  9. 13
  10. Arch

History

Written by Landon Curt Noll <[email protected]> and Rich $alz <[email protected]> for InterNetNews. Rewritten into POD by Julien Elie.

From inn 2.7.4-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.