Commit | Line | Data |
---|---|---|
362b077f C |
1 | |
2 | ||
3 | ||
4 | WRITE(1) UNIX Programmer's Manual WRITE(1) | |
5 | ||
6 | ||
7 | ||
8 | N\bNA\bAM\bME\bE | |
9 | write - write to another user | |
10 | ||
11 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
12 | w\bwr\bri\bit\bte\be user [ ttyname ] | |
13 | ||
14 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
15 | _\bW_\br_\bi_\bt_\be copies lines from your terminal to that of another | |
16 | user. When first called, it sends the message | |
17 | ||
18 | Message from yourname@yoursystem on yourttyname at | |
19 | time... | |
20 | ||
21 | The recipient of the message should write back at this | |
22 | point. Communication continues until an end of file is read | |
23 | from the terminal or an interrupt is sent. At that point | |
24 | _\bw_\br_\bi_\bt_\be writes `EOT' on the other terminal and exits. | |
25 | ||
26 | If you want to write to a user who is logged in more than | |
27 | once, the _\bt_\bt_\by_\bn_\ba_\bm_\be argument may be used to indicate the | |
28 | appropriate terminal name. | |
29 | ||
30 | Permission to write may be denied or granted by use of the | |
31 | _\bm_\be_\bs_\bg command. At the outset writing is allowed. Certain | |
32 | commands, in particular _\bn_\br_\bo_\bf_\bf and _\bp_\br(1) disallow messages in | |
33 | order to prevent messy output. | |
34 | ||
35 | If the character `!' is found at the beginning of a line, | |
36 | _\bw_\br_\bi_\bt_\be calls the shell to execute the rest of the line as a | |
37 | command. | |
38 | ||
39 | The following protocol is suggested for using _\bw_\br_\bi_\bt_\be: when | |
40 | you first write to another user, wait for him to write back | |
41 | before starting to send. Each party should end each message | |
42 | with a distinctive signal-(\b(o\bo)\b) for `over' is conventional- | |
43 | that the other may reply. (\b(o\boo\bo)\b) for `over and out' is sug- | |
44 | gested when conversation is about to be terminated. | |
45 | ||
46 | F\bFI\bIL\bLE\bES\bS | |
47 | /etc/utmp to find user | |
48 | /bin/sh to execute `!' | |
49 | ||
50 | S\bSE\bEE\bE A\bAL\bLS\bSO\bO | |
51 | mesg(1), who(1), mail(1) | |
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | Printed 7/9/88 May 5, 1986 1 | |
64 | ||
65 | ||
66 |