BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / write.0
WRITE(1) UNIX Programmer's Manual WRITE(1)
N\bNA\bAM\bME\bE
write - write to another user
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
w\bwr\bri\bit\bte\be user [ ttyname ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bW_\br_\bi_\bt_\be 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
_\bw_\br_\bi_\bt_\be writes `EOT' on the other terminal and exits.
If you want to write to a user who is logged in more than
once, the _\bt_\bt_\by_\bn_\ba_\bm_\be argument may be used to indicate the
appropriate terminal name.
Permission to write may be denied or granted by use of the
_\bm_\be_\bs_\bg command. At the outset writing is allowed. Certain
commands, in particular _\bn_\br_\bo_\bf_\bf and _\bp_\br(1) disallow messages in
order to prevent messy output.
If the character `!' is found at the beginning of a line,
_\bw_\br_\bi_\bt_\be calls the shell to execute the rest of the line as a
command.
The following protocol is suggested for using _\bw_\br_\bi_\bt_\be: 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-(\b(o\bo)\b) for `over' is conventional-
that the other may reply. (\b(o\boo\bo)\b) for `over and out' is sug-
gested when conversation is about to be terminated.
F\bFI\bIL\bLE\bES\bS
/etc/utmp to find user
/bin/sh to execute `!'
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
mesg(1), who(1), mail(1)
Printed 7/9/88 May 5, 1986 1