BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / uucp.0
CommitLineData
362b077f
C
1
2
3
4UUCP(1C) UNIX Programmer's Manual UUCP(1C)
5
6
7
8N\bNA\bAM\bME\bE
9 uucp - unix to unix copy
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 u\buu\buc\bcp\bp [ -\b-a\bac\bcC\bCd\bdf\bfm\bmr\br ] [ -\b-n\bn_\bu_\bs_\be_\br ] [ -\b-g\bg_\bg_\br_\ba_\bd_\be ] [ -\b-s\bs_\bs_\bp_\bo_\bo_\bl ] [ -\b-x\bx_\bd_\be_\b-
13 _\bb_\bu_\bg ] source-file.... destination-file
14
15D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
16 _\bU_\bu_\bc_\bp copies files named by the source-file arguments to the
17 destination-file argument. A file name may be a pathname on
18 your machine, or may have the form
19
20 system-name!pathname
21
22 where `system-name' is taken from a list of system names
23 that _\bu_\bu_\bc_\bp knows about. Shell metacharacters ?*[] appearing
24 in the pathname part will be expanded on the appropriate
25 system.
26
27 Pathnames may be one of:
28
29 (1) a full pathname;
30
31 (2) a pathname preceded by ~\b~_\bu_\bs_\be_\br; where _\bu_\bs_\be_\br is a userid on
32 the specified system and is replaced by that user's
33 login directory;
34
35 (3) a pathname prefixed by ~\b~, where ~\b~ is expanded into the
36 system's public directory (usually
37 /usr/spool/uucppublic);
38
39 (4) a partial pathname, which is prefixed by the current
40 directory.
41
42 If the result is an erroneous pathname for the remote sys-
43 tem, the copy will fail. If the destination-file is a
44 directory, the last part of the source-file name is used.
45
46 _\bU_\bu_\bc_\bp preserves execute permissions across the transmission
47 and gives 0666 read and write permissions (see _\bc_\bh_\bm_\bo_\bd(2)).
48
49 The following options are interpreted by _\bu_\bu_\bc_\bp.
50
51 -\b-a\ba Avoid doing a _\bg_\be_\bt_\bw_\bd to find the current directory.
52 (This is sometimes used for efficiency.)
53
54 -\b-c\bc Use the source file when copying out rather than copy-
55 ing the file to the spool directory. (This is the
56 default.)
57
58 -\b-C\bC Copy the source file to the spool directory and
59 transmit the copy.
60
61
62
63Printed 7/9/88 April 24, 1986 1
64
65
66
67
68
69
70UUCP(1C) UNIX Programmer's Manual UUCP(1C)
71
72
73
74 -\b-d\bd Make all necessary directories for the file copy.
75 (This is the default.)
76
77 -\b-f\bf Do not make intermediate directories for the file copy.
78
79 -\b-g\bg_\bg_\br_\ba_\bd_\be
80 _\bG_\br_\ba_\bd_\be is a single letter/number; lower ASCII sequence
81 characters will cause a job to be transmitted earlier
82 during a particular conversation. Default is `n'. By
83 way of comparison, _\bu_\bu_\bx(1C) defaults to `A'; mail is
84 usually sent at `C'.
85
86 -\b-m\bm Send mail to the requester when the copy is complete.
87
88 -\b-n\bn_\bu_\bs_\be_\br
89 Notify _\bu_\bs_\be_\br on remote system (i.e., send _\bu_\bs_\be_\br mail)
90 that a file was sent.
91
92 -\b-r\br Do not start the transfer, just queue the job.
93
94 -\b-s\bs_\bs_\bp_\bo_\bo_\bl
95 Use _\bs_\bp_\bo_\bo_\bl as the spool directory instead of the
96 default.
97
98 -\b-x\bx_\bd_\be_\bb_\bu_\bg
99 Turn on the debugging at level _\bd_\be_\bb_\bu_\bg.
100
101F\bFI\bIL\bLE\bES\bS
102 /usr/spool/uucp - spool directory
103 /usr/lib/uucp/* - other data and program files
104
105S\bSE\bEE\bE A\bAL\bLS\bSO\bO
106 uux(1C), mail(1)
107
108 D. A. Nowitz and M. E. Lesk, _\bA _\bD_\bi_\ba_\bl-_\bU_\bp _\bN_\be_\bt_\bw_\bo_\br_\bk _\bo_\bf _\bU_\bN_\bI_\bX _\bS_\by_\bs_\b-
109 _\bt_\be_\bm_\bs.
110
111 D. A. Nowitz, _\bU_\bu_\bc_\bp _\bI_\bm_\bp_\bl_\be_\bm_\be_\bn_\bt_\ba_\bt_\bi_\bo_\bn _\bD_\be_\bs_\bc_\br_\bi_\bp_\bt_\bi_\bo_\bn.
112
113W\bWA\bAR\bRN\bNI\bIN\bNG\bG
114 The domain of remotely accessible files can (and for obvious
115 security reasons, usually should) be severely restricted.
116 You will very likely not be able to fetch files by pathname;
117 ask a responsible person on the remote system to send them
118 to you. For the same reasons you will probably not be able
119 to send files to arbitrary pathnames.
120
121B\bBU\bUG\bGS\bS
122 All files received by _\bu_\bu_\bc_\bp will be owned by the uucp
123 administrator (usually UID 5).
124
125
126
127
128
129Printed 7/9/88 April 24, 1986 2
130
131
132
133
134
135
136UUCP(1C) UNIX Programmer's Manual UUCP(1C)
137
138
139
140 The -\b-m\bm option will only work sending files or receiving a
141 single file. (Receiving multiple files specified by special
142 shell characters ?*[] will not activate the -\b-m\bm option.)
143
144 At present _\bu_\bu_\bc_\bp cannot copy to a system several "hops" away,
145 that is, a command of the form
146
147 uucp myfile system1!system2!system3!yourfile
148
149 is not permitted. Use _\bu_\bu_\bs_\be_\bn_\bd(1C) instead.
150
151 When invoking _\bu_\bu_\bc_\bp from _\bc_\bs_\bh(1), the `!' character must be
152 prefixed by the `\' escape to inhibit _\bc_\bs_\bh's history mechan-
153 ism. (Quotes are not sufficient.)
154
155 _\bU_\bu_\bc_\bp refuses to copy a file that does not give read access
156 to ``other''; that is, the file must have at least 0444
157 modes.
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195Printed 7/9/88 April 24, 1986 3
196
197
198