-
Notifications
You must be signed in to change notification settings - Fork 0
/
write.1
92 lines (92 loc) · 2.88 KB
/
write.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.\" Copyright (c) 1997 James P. Howard, II <jh@jameshoward.us>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.TH WRITE 1 "October 15, 1997" "Write" "Linux User's Manual"
.SH NAME
write \- send a message to another user
.SH SYNOPSIS
.B write
.I user<@host><#tty> <tty>
.SH DESCRIPTION
.B Write
permites you to communicte with other users by transfering lines from your
terminal to thiers.
.B Write
opens the receiving user's tty and sends a message in the format:
.PP
.RS
.PD 0
.TP
Message from user@host on tty at hh:mm...
.PD
.RE
.PP
At this point, the caller's lines will be copied to the receiving user's
tty.
.B Write
will continue tranfering lines of text until and end-of-file marker is
encountered or the program is terminated. When terminated,
.B write
sends the line "EOF (user@host)" to the receiving user's terminal then
closes the connection.
.PP
The usual protocol for users communicating via
.B write
is to end lines with "-o" to signal the other user that it is time to
talk. The text "oo" is used to indicated the conversation is believed to
be over.
.PP
If a line begins with "!",
.B write
interprets the following text as a command line and passes it to
.BR sh (1).
.PP
.B Write
permission can be denied using
.BR mesg (1).
.PP
.B mesg
displays the current settings.
.SH FILES
.PD 0
.TP
.I /bin/sh
.TP
.I /dev/tty*
.TP
.I /var/run/utmp
.PD
.SH SEE ALSO
.BR finger (1),
.BR mesg (1),
.BR talk (1),
.BR wall (1),
.BR write (7),
.BR writed (8)
.SH HISTORY
.B Write
appeared in Sixth Edition AT&T UNIX. The network aware
.B write
was developed at the Massachusetts Institute of Technology as part of
Project Athena.