Commit | Line | Data |
---|---|---|
5f25fb9e | 1 | .\" @(#)uucico.8 6.2 (Berkeley) %G% |
aafc3782 JB |
2 | .\" |
3 | .TH UUCICO 8C "" | |
4 | .UC 6 | |
5 | .SH NAME | |
5f25fb9e | 6 | uucico \- transfer files queued by uucp or uux |
aafc3782 | 7 | .SH SYNOPSIS |
5f25fb9e | 8 | .B /usr/lib/uucp/uucico |
aafc3782 JB |
9 | [ |
10 | .BI \-d spooldir | |
11 | ] [ | |
12 | .BI \-g grade | |
13 | ] [ | |
14 | .BI \-r role | |
15 | ] [ | |
16 | .B \-R | |
17 | ] [ | |
18 | .BI \-s system | |
19 | ] [ | |
20 | .BI \-x debug | |
21 | ] [ | |
22 | .B \-L | |
23 | ] [ | |
24 | .BI \-t turnaround | |
25 | ] | |
aafc3782 | 26 | .SH DESCRIPTION |
5f25fb9e | 27 | .I Uucico |
aafc3782 JB |
28 | performs the actual work involved in transferring files between |
29 | systems. | |
5f25fb9e | 30 | .IR Uucp (1C) |
aafc3782 | 31 | and |
5f25fb9e KM |
32 | .IR uux (1C) |
33 | merely queue requests for data transfer which | |
34 | .I uucico | |
35 | processes. | |
aafc3782 JB |
36 | .PP |
37 | The following options are available. | |
38 | .TP 8 | |
39 | .BI \-d spooldir | |
40 | Use | |
41 | .I spooldir | |
5f25fb9e | 42 | as the spool directory. The default is /usr/spool/uucp. |
aafc3782 JB |
43 | .TP 8 |
44 | .BI \-g grade | |
45 | Only send jobs of grade | |
46 | .I grade | |
47 | or higher this transfer. | |
5f25fb9e KM |
48 | The grade of a job is specified when the job is queued by |
49 | .I uucp | |
50 | or | |
51 | .IR uux . | |
aafc3782 JB |
52 | .TP 8 |
53 | .BI \-r role | |
54 | .I role | |
5f25fb9e KM |
55 | is either 1 or 0; it indicates whether |
56 | .I uucico | |
57 | is to start up in | |
58 | master or slave role, respectively. 1 is used when running | |
aafc3782 | 59 | .I uucico |
5f25fb9e KM |
60 | by hand or from |
61 | .IR cron (8). | |
62 | 0 is used when another system calls the local system. | |
63 | Slave role is the default. | |
64 | .TP 8 | |
65 | .B \-R | |
66 | Reverse roles. When used with the | |
67 | .B \-r1 | |
68 | option, this tells the remote system to begin sending its | |
69 | jobs first, instead of waiting for the local machine to finish. | |
aafc3782 JB |
70 | .TP 8 |
71 | .BI \-s system | |
72 | Call only system | |
73 | .IR system . | |
74 | If | |
75 | .B \-s | |
5f25fb9e | 76 | is not specified, and \-r1 is specified, |
aafc3782 JB |
77 | .I uucico |
78 | will attempt to call all systems for which there is work. | |
79 | If | |
80 | .B \-s | |
81 | is specified, a call will be made even if there is | |
5f25fb9e | 82 | no work for that system. This is useful for polling. |
aafc3782 JB |
83 | .TP 8 |
84 | .BI \-x debug | |
85 | Turn on debugging at level | |
86 | .IR debug . | |
87 | Level 5 is a good start when trying to find out why a call | |
88 | failed. Level 9 is very detailed. Level 99 is absurdly verbose. | |
5f25fb9e KM |
89 | If |
90 | .I role | |
91 | is 1 (master), output is normally written to the standard message | |
92 | output | |
93 | .IR stderr . | |
94 | If | |
95 | .I stderr | |
96 | is unavailable, output is written to | |
97 | .RI /usr/spool/uucp/AUDIT/ system. | |
98 | When | |
99 | .I role | |
100 | is 0 (slave), debugging output is always written to the AUDIT | |
101 | file. | |
aafc3782 JB |
102 | .TP 8 |
103 | .B \-L | |
104 | Only call ``local'' sites. A site is considered local if | |
105 | the device-type field in | |
106 | .I L.sys | |
107 | is one of LOCAL, DIR or TCP. | |
108 | .TP 8 | |
109 | .BI \-t turnaround | |
110 | Use | |
111 | .I turnaround | |
112 | as the line turnaround time (in minutes) instead of the default 30. If | |
113 | .I turnaround | |
114 | is missing or 0, line turnaround will be disabled. | |
5f25fb9e KM |
115 | After |
116 | .I uucico | |
117 | has been running in slave role for | |
aafc3782 | 118 | .I turnaround |
5f25fb9e KM |
119 | minutes, it will attempt to run in master role by negotiating with the |
120 | remote machine. | |
121 | In earlier versions of | |
122 | .IR uucico , | |
123 | a transfer of many large files in one direction would hold up mail | |
124 | going in the other direction. | |
aafc3782 JB |
125 | With the turnaround code working, the message flow will be more |
126 | bidirectional in the short term. | |
5f25fb9e KM |
127 | This option only works with newer |
128 | .IR uucico 's | |
129 | and is ignored by older ones. | |
aafc3782 JB |
130 | .PP |
131 | If | |
132 | .I uucico | |
133 | receives a | |
134 | .B SIGFPE | |
135 | (see | |
5f25fb9e | 136 | .IR kill (1)), |
aafc3782 JB |
137 | it will toggle the debugging on or off. |
138 | .PP | |
5f25fb9e KM |
139 | .I Uucico |
140 | is commonly used either of two ways: as a daemon run periodically by | |
141 | .IR cron (8) | |
142 | to call out to remote systems, and as a ``shell'' for remote systems | |
143 | who call in. | |
144 | For calling out periodically, a typical line in | |
145 | .I crontab | |
146 | would be: | |
aafc3782 | 147 | .PP |
5f25fb9e KM |
148 | .nf |
149 | 0 * * * * /usr/lib/uucp/uucico -r1 | |
150 | .fi | |
151 | .PP | |
152 | This will run | |
aafc3782 | 153 | .I uucico |
5f25fb9e KM |
154 | every hour in master role. |
155 | For each system that has transfer requests queued, | |
156 | .I uucico | |
157 | calls the system, logs in, and executes the transfers. The file | |
158 | .IR L.sys (5) | |
159 | is consulted for information about how to log in, while | |
160 | .IR L-devices (5) | |
161 | specifies available lines and modems for calling. | |
162 | .PP | |
163 | For remote systems to dial in, an entry in the | |
164 | .IR passwd (5) | |
165 | file must be created, with a login ``shell'' of | |
166 | .IR uucico . | |
167 | For example: | |
168 | .PP | |
169 | .nf | |
170 | nuucp:Password:6:1::/usr/spool/uucppublic:/usr/lib/uucp/uucico | |
171 | .fi | |
172 | .PP | |
173 | The UID for UUCP remote logins is not critical, so long as it differs from | |
174 | the UUCP Administrative login (usually UID 5). | |
175 | The latter owns the UUCP files, and assigning | |
176 | this UID to a remote login would be an extreme security hazard. | |
aafc3782 | 177 | .SH FILES |
5f25fb9e KM |
178 | .ta \w'/usr/spool/uucp/D.hostnameX/ 'u |
179 | .nf | |
180 | /usr/lib/uucp/ UUCP internal files/utilities | |
181 | /usr/lib/uucp/L-devices Local device descriptions | |
182 | /usr/lib/uucp/L-dialcodes Phone numbers and prefixes | |
183 | /usr/lib/uucp/L.aliases Hostname aliases | |
184 | /usr/lib/uucp/L.cmds Remote command permissions list | |
185 | /usr/lib/uucp/L.sys Host connection specifications | |
186 | /usr/lib/uucp/USERFILE Remote directory tree permissions list | |
187 | .PP | |
188 | /usr/spool/uucp/ Spool directory | |
189 | /usr/spool/uucp/AUDIT/* Debugging audit trails | |
190 | /usr/spool/uucp/C./ Control files directory | |
191 | /usr/spool/uucp/D./ Incoming data file directory | |
192 | /usr/spool/uucp/D.hostname/ Outgoing data file directory | |
193 | /usr/spool/uucp/D.hostnameX/ Outgoing execution file directory | |
194 | /usr/spool/uucp/CORRUPT/ Place for corrupted C. and D. files | |
195 | /usr/spool/uucp/ERRLOG UUCP internal error log | |
196 | /usr/spool/uucp/LOGFILE UUCP system activity log | |
197 | /usr/spool/uucp/LCK/LCK..* Device lock files | |
198 | /usr/spool/uucp/SYSLOG File transfer statistics log | |
199 | /usr/spool/uucp/STST/* System status files | |
200 | /usr/spool/uucp/TM./ File transfer temp directory | |
201 | /usr/spool/uucp/X./ Incoming execution file directory | |
202 | .PP | |
203 | /usr/spool/uucppublic Public access directory | |
204 | .fi | |
aafc3782 | 205 | .SH SEE ALSO |
5f25fb9e KM |
206 | uucp(1C), uuq(1C), uux(1C), L-devices(5), L-dialcodes(5), L.aliases(5), |
207 | L.cmds(5), L.sys(5), uuclean(8C), uupoll(8C), uusnap(8C), uuxqt(8C) | |
208 | .PP | |
209 | D. A. Nowitz and M. E. Lesk, | |
210 | .IR "A Dial-Up Network of UNIX Systems" . | |
211 | .PP | |
aafc3782 | 212 | D. A. Nowitz, |
5f25fb9e | 213 | .IR "Uucp Implementation Description" . |