bsd man page for write

Query: write

OS: bsd

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

WRITE(1)						      General Commands Manual							  WRITE(1)

NAME
write - write to another user
SYNOPSIS
write user [ ttyname ]
DESCRIPTION
Write copies lines from your terminal to that of another user. When first called, it sends the message Message from yourname@yoursystem on yourttyname at time... The recipient of the message should write back at this point. Communication continues until an end of file is read from the terminal or an interrupt is sent. At that point write writes `EOT' on the other terminal and exits. If you want to write to a user who is logged in more than once, the ttyname argument may be used to indicate the appropriate terminal name. Permission to write may be denied or granted by use of the mesg command. At the outset writing is allowed. Certain commands, in particu- lar nroff and pr(1) disallow messages in order to prevent messy output. If the character `!' is found at the beginning of a line, write calls the shell to execute the rest of the line as a command. The following protocol is suggested for using write: when you first write to another user, wait for him to write back before starting to send. Each party should end each message with a distinctive signal--(o) for `over' is conventional--that the other may reply. (oo) for `over and out' is suggested when conversation is about to be terminated.
FILES
/var/run/utmp to find user /bin/sh to execute `!'
SEE ALSO
mesg(1), who(1), mail(1) 7th Edition November 27, 1996 WRITE(1)
Related Man Pages
write(1) - mojave
write(1) - linux
write(1) - bsd
write(1) - suse
write(1) - php
Similar Topics in the Unix Linux Community
How to get the user Id of an user?
Shell/commands/scripting/c questions
How to check if a command returns nothing
How to display message when starting a terminal
Grep from a certain point in output