ZWRITE(1)

✨ ZWRITE(1) ✨ β€” like, the zwrite manual, bestie πŸ’Œ

okay so picture this: it's the General Commands Manual, and the star of the show is zwrite. Yes queen, we're doing Zephyr messaging today πŸ’…


🌸 NAME 🌸

zwrite β€” write to another user via Zephyr πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

zwrite [ -a ] [ -d ] [ -v ] [ -q ] [ -t ] [ -u ] [ -o ] [ -n ] [ -l ] [
-C ] [ -U ] [ -O opcode ] [ -s signature ] [ -c class ] [ -i instance ]
[ -r realm ] [ -f arg ] [ -S sender ] [ user ...  ] [ -m message ]

πŸ’– DESCRIPTION πŸ’–

So zwrite sends a message from you to another user through the zephyr(1) notification service. Iconic. But here's the tea: that other user must have subscribed to messages of the appropriate class and instance using the zctl(1) program first. No subscription, no vibes, no delivery. That's just how it is 🫢

zwrite understands the following options. Buckle up, there's a lot, but we're getting through all of them together, fr fr.

  • -a β€” makes zwrite send the message authenticated, using Kerberos to do the authentication. This is the default, so like, it's already the main character ✨
  • -d β€” makes zwrite send the message unauthenticated. The opposite vibe of -a.
  • -v β€” makes zwrite print what type of message it's sending, and whether or not it succeeded. Receipts, basically 🧾
  • -q β€” forces zwrite to suppress information about whether or not the message was sent. No updates, just silence, mysterious queen πŸ’€
  • -t β€” stops zwrite from expanding tabs in the message into appropriate spaces. Normally zwrite will expand any tabs it finds into the right number of spaces to keep separation based on 8-character tab stops. So yeah, this one keeps your tabs raw and unbothered.
  • -l β€” causes zwrite to ignore '.' on a line by itself in the input, and only end a typed message when the user types the end-of-file character (usually control-D). And plot twist: when the input is not a terminal, this is the default action. Slay.
  • -u β€” sends an urgent message. This changes the zephyr instance of the message to `URGENT'. Big energy, but see the BUGS section bestie, we'll get there 🚨
  • -o β€” causes zwrite to ignore the Zephyr variables zwrite-class, zwrite-inst, and zwrite-opcode when picking a default class, instance, and opcode. It's giving "I make my own choices" πŸ’…
  • -n β€” prevents zwrite from sending a PING message to verify the recipient is subscribing to messages. By default, zwrite will send a notice to the destination class, instance, and recipient, with opcode `PING', before sending the message. If the PING is sent and the server response indicates there are no recipients subscribed to your message, zwrite exits without sending a message. When the -n option is used, no PING is sent at all. So -n is lowkey "I don't need to check, I trust the process" πŸ™ˆ
  • -C β€” prepends a "CC:" line to the body of the message indicating the recipients of the message. And listen, this is strictly a convenience: the presence of a "CC:" line at the top of a zephyr body does not necessarily indicate that this option was used, or that the message really was sent to the listed users. And its lack doesn't indicate that the message wasn't sent to multiple users either. So don't read into it, okay? πŸ‘‘
  • -U β€” send an unacked message. zwrite will not wait for acknowledgement that the message was sent, nor will it issue a PING before sending. Ghosting the confirmation, respectfully.
  • -s signature β€” sets the signature to be included in the message. This overrides both the user's name (as found in the password file) and any setting of the Zephyr variable zwrite-signature. signature must be a single argument, hence when using a shell it should be quoted with double quotes. A signature argument of "" leaves the signature in the message empty. So you can absolutely just sign off with nothing if that's the mood πŸŽ€
  • -c class β€” lets a user specify a different class for the message. This allows a message to be sent to a large group of people with some degree of security. See zephyr(1) and zephyrd(8) for a description of how to restrict access to classes. When this option is specified, the message is sent to recipient "*" unless an additional list of recipients is specified.
Heads up bestie: this argument may not be used in conjunction with the -f option.
  • -i instance β€” lets a user specify a different instance than the default. When this option is used, the message is sent to recipient "*" unless an additional list of recipients is specified. This allows a message to be sent to a large group of people (e.g. a development group) just by having the members subscribe to messages of class "MESSAGE", the specified instance, and recipient "*". Group chat, but make it Zephyr 🌈
Also: this argument may not be used in conjunction with the -f option.
  • -r realm β€” lets a user specify a different realm for the message, if the server supports interrealm Zephyr. Conditional queen πŸ‘‘
  • -S sender β€” specify a sender. The message will be sent unauthenticated. Just so we're clear on that part 🫣
  • -F format β€” lets a user specify a different default format for the message. Customize away ✨
  • -O opcode β€” lets a user specify a different opcode for the message. Some Zephyr notice display programs may use the opcode to decide how to display a notice. So it's a hint for the display side of things πŸ–₯️
  • -f arg β€” lets a user specify an argument to be interpreted as a filesystem specification. The class is set to FILSRV. The instance is set to arg as modified: if arg contains no colons (:), it is assumed to be a host name, and it is converted into an official host name via gethostbyname(3). If arg contains a colon, the portion preceding the colon is treated as a host name, and the colon and any trailing characters are appended to the official host name returned by gethostbyname. If the name fails to resolve into an official host name, the instance is set to arg unmodified. Wild, but okay.
And of course: this option may not be used in conjunction with the -c or -i option.
  • -m β€” zwrite sends the remaining arguments on the command line as the message. One-shot, no prompting, straight to business πŸ’Œ

If the -m option is not specified, the user is prompted for the message to be sent. The message may be terminated by typing ^D or "." on a line by itself. (Unless you used -l, in which case, remember, the . doesn't count 😌)

The default class for messages is `MESSAGE', the default instance is `PERSONAL', and the default opcode is '' (an empty string). These defaults can be overridden by setting the Zephyr variables zwrite-class, zwrite-inst, and zwrite-opcode, respectively. Command-line options can override the defaults. So there's a whole hierarchy of who's in charge, and the command line is at the top 🫢

If the class is `MESSAGE' and the instance is either `PERSONAL' or `URGENT', a recipient must be specified. And these comparisons are case-sensitive, so don't try to be cute with capitalization, it will not work βœ‹

Unless the -s option is used, the contents of the Zephyr variable zwrite-signature are used to augment the user's username in the message. If zwrite-signature is not set and the -s option is not specified, the user's full name (as specified in the password file) is used instead. So your name gets in there one way or another, bestie πŸ’–


πŸ’€ BUGS πŸ’€

Tab expansion should really be done by the receiver of the message. Not us. Not our problem. (Well, it's our problem, but it shouldn't be.)

The -u option is provided for compatibility with old versions of zwrite and is not necessarily useful for sending messages to users who do not have old subscription files. So like, it's there for the elders, but don't count on it hitting different πŸ‘΅


🌟 SEE ALSO 🌟

kerberosintro(1), zctl(1), zephyr(1), zwgc(1), zhm(8), zephyrd(8), gethostbyname(3)

Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service'


πŸ“ FILES πŸ“

  • /etc/passwd
  • $ZEPHYR_VARS or $HOME/.zephyr.vars

πŸ‘‘ AUTHOR πŸ‘‘

Robert S. French (MIT-Project Athena) 🫢


πŸ”₯ RESTRICTIONS πŸ”₯

Copyright (c) 1987,1988 by the Massachusetts Institute of Technology.

All Rights Reserved.

zephyr(1) specifies the terms and conditions for redistribution.


okay that's the whole page bestie, you now know zwrite better than it knows itself πŸ’… this was MIT Project Athena, dated October 26, 1989, and it's the ZWRITE(1) page, periodt βœ¨πŸ’–πŸŽ€

πŸ“¦ where this page comes from