correct explanation of error handling by the math library
[unix-history] / usr / src / usr.bin / uucp / uucico / uucico.8
CommitLineData
5f25fb9e 1.\" @(#)uucico.8 6.2 (Berkeley) %G%
aafc3782
JB
2.\"
3.TH UUCICO 8C ""
4.UC 6
5.SH NAME
5f25fb9e 6uucico \- 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
28performs the actual work involved in transferring files between
29systems.
5f25fb9e 30.IR Uucp (1C)
aafc3782 31and
5f25fb9e
KM
32.IR uux (1C)
33merely queue requests for data transfer which
34.I uucico
35processes.
aafc3782
JB
36.PP
37The following options are available.
38.TP 8
39.BI \-d spooldir
40Use
41.I spooldir
5f25fb9e 42as the spool directory. The default is /usr/spool/uucp.
aafc3782
JB
43.TP 8
44.BI \-g grade
45Only send jobs of grade
46.I grade
47or higher this transfer.
5f25fb9e
KM
48The grade of a job is specified when the job is queued by
49.I uucp
50or
51.IR uux .
aafc3782
JB
52.TP 8
53.BI \-r role
54.I role
5f25fb9e
KM
55is either 1 or 0; it indicates whether
56.I uucico
57is to start up in
58master or slave role, respectively. 1 is used when running
aafc3782 59.I uucico
5f25fb9e
KM
60by hand or from
61.IR cron (8).
620 is used when another system calls the local system.
63Slave role is the default.
64.TP 8
65.B \-R
66Reverse roles. When used with the
67.B \-r1
68option, this tells the remote system to begin sending its
69jobs first, instead of waiting for the local machine to finish.
aafc3782
JB
70.TP 8
71.BI \-s system
72Call only system
73.IR system .
74If
75.B \-s
5f25fb9e 76is not specified, and \-r1 is specified,
aafc3782
JB
77.I uucico
78will attempt to call all systems for which there is work.
79If
80.B \-s
81is specified, a call will be made even if there is
5f25fb9e 82no work for that system. This is useful for polling.
aafc3782
JB
83.TP 8
84.BI \-x debug
85Turn on debugging at level
86.IR debug .
87Level 5 is a good start when trying to find out why a call
88failed. Level 9 is very detailed. Level 99 is absurdly verbose.
5f25fb9e
KM
89If
90.I role
91is 1 (master), output is normally written to the standard message
92output
93.IR stderr .
94If
95.I stderr
96is unavailable, output is written to
97.RI /usr/spool/uucp/AUDIT/ system.
98When
99.I role
100is 0 (slave), debugging output is always written to the AUDIT
101file.
aafc3782
JB
102.TP 8
103.B \-L
104Only call ``local'' sites. A site is considered local if
105the device-type field in
106.I L.sys
107is one of LOCAL, DIR or TCP.
108.TP 8
109.BI \-t turnaround
110Use
111.I turnaround
112as the line turnaround time (in minutes) instead of the default 30. If
113.I turnaround
114is missing or 0, line turnaround will be disabled.
5f25fb9e
KM
115After
116.I uucico
117has been running in slave role for
aafc3782 118.I turnaround
5f25fb9e
KM
119minutes, it will attempt to run in master role by negotiating with the
120remote machine.
121In earlier versions of
122.IR uucico ,
123a transfer of many large files in one direction would hold up mail
124going in the other direction.
aafc3782
JB
125With the turnaround code working, the message flow will be more
126bidirectional in the short term.
5f25fb9e
KM
127This option only works with newer
128.IR uucico 's
129and is ignored by older ones.
aafc3782
JB
130.PP
131If
132.I uucico
133receives a
134.B SIGFPE
135(see
5f25fb9e 136.IR kill (1)),
aafc3782
JB
137it will toggle the debugging on or off.
138.PP
5f25fb9e
KM
139.I Uucico
140is commonly used either of two ways: as a daemon run periodically by
141.IR cron (8)
142to call out to remote systems, and as a ``shell'' for remote systems
143who call in.
144For calling out periodically, a typical line in
145.I crontab
146would be:
aafc3782 147.PP
5f25fb9e
KM
148.nf
149 0 * * * * /usr/lib/uucp/uucico -r1
150.fi
151.PP
152This will run
aafc3782 153.I uucico
5f25fb9e
KM
154every hour in master role.
155For each system that has transfer requests queued,
156.I uucico
157calls the system, logs in, and executes the transfers. The file
158.IR L.sys (5)
159is consulted for information about how to log in, while
160.IR L-devices (5)
161specifies available lines and modems for calling.
162.PP
163For remote systems to dial in, an entry in the
164.IR passwd (5)
165file must be created, with a login ``shell'' of
166.IR uucico .
167For example:
168.PP
169.nf
170 nuucp:Password:6:1::/usr/spool/uucppublic:/usr/lib/uucp/uucico
171.fi
172.PP
173The UID for UUCP remote logins is not critical, so long as it differs from
174the UUCP Administrative login (usually UID 5).
175The latter owns the UUCP files, and assigning
176this 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
206uucp(1C), uuq(1C), uux(1C), L-devices(5), L-dialcodes(5), L.aliases(5),
207L.cmds(5), L.sys(5), uuclean(8C), uupoll(8C), uusnap(8C), uuxqt(8C)
208.PP
209D. A. Nowitz and M. E. Lesk,
210.IR "A Dial-Up Network of UNIX Systems" .
211.PP
aafc3782 212D. A. Nowitz,
5f25fb9e 213.IR "Uucp Implementation Description" .