BSD 4_3_Reno development
[unix-history] / usr / share / man / cat1 / write.0
CommitLineData
135e157e
C
1
2
3
4WRITE(1) 1989 WRITE(1)
5
6
7
8N\bNA\bAM\bME\bE
9 write - send a message to another user
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 w\bwr\bri\bit\bte\be u\bus\bse\ber\br [ t\btt\bty\byn\bna\bam\bme\be ]
13
14D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
15 _\bW_\br_\bi_\bt_\be allows you to communicate with other users, by copying
16 lines from your terminal to theirs.
17
18 When you run the _\bw_\br_\bi_\bt_\be command, the user you are writing to
19 gets a message of the form:
20
21 Message from yourname@yourhost on yourtty at hh:mm ...
22
23 Any further lines you enter will be copied to the specified
24 user's terminal. If the other user wants to reply, they
25 must run _\bw_\br_\bi_\bt_\be as well.
26
27 When you are done, type an end-of-file or interrupt charac-
28 ter. The other user will see the message ``EOF'' indicating
29 that the conversation is over.
30
31 You can prevent people (other than the super-user) from
32 writing to you with the _\bm_\be_\bs_\bg(1) command. Some commands, for
33 example _\bn_\br_\bo_\bf_\bf and _\bp_\br, disallow writing automatically, so
34 that your output isn't overwritten.
35
36 If the user you want to write to is logged in on more than
37 one terminal, you can specify which terminal to write to by
38 specifying the terminal name as the second operand to the
39 _\bw_\br_\bi_\bt_\be command. Alternatively, you can let _\bw_\br_\bi_\bt_\be select one
40 of the terminals - it will pick the one with the shortest
41 idle time. This is so that if the user is logged in at work
42 and also dialed up from home, the message will go to the
43 right place.
44
45 The traditional protocol for writing to someone is that the
46 string ``-o'', either at the end of a line or on a line by
47 itself, means that it's the other person's turn to talk.
48 The string ``o-o'' means that the person believes the
49 conversation to be over.
50
51S\bSE\bEE\bE A\bAL\bLS\bSO\bO
52 mesg(1), talk(1), who(1)
53
54
55
56
57
58
59
60
61
62
63Printed 7/27/90 November 1
64
65
66