uucp - Copies files from one system to another (UNIX-to-UNIX system copy)
uucp [-d|-f] [-ggrade] [-cCjmr] [-nuser] [-sfile] [-xdebug_level] source... destination
command copies one or more source files
from one system to one or more destination files on another system.
Interfaces documented on this reference page conform to industry standards as follows:
Refer to the
reference page for more information
about industry standards and associated tags.
Transfers the source files to the destination on the specified computer. The source files are not copied into the spool directory for transfer. This saves the system from copying possibly large files to the spooling directory for transfer. (See the discussion of the -C option.) Copies local files to the spool directory for transfer. Depending on the configuration of the Poll and Systems files, and on how often the uusched command is run, the files could be transferred immediately (on demand polling), or in the future. This option is on by default.
The uucp command can copy files within a local system, between a local and a remote system, and between two remote systems.
The uucp command accomplishes the file transfer in two steps: first, by creating a command (C.*) file in the spooling directory on the local computer, and then by sending the request to the specified computer using the uucico command.
Command files include information such as the full pathname of the source and destination files, and the sender's login name. The full pathname of a command file is a form of the following: /var/spool/uucp/system/C.systemNnnnn
where N is the grade of the request and nnnn is the hexadecimal sequence number used.
If the uucp command is used with the -C option to copy the files to the spool directory for transfer, uucp creates not only a command file, but also a data (D.*) file that contains the actual source file. The full pathname of a data file is a form of the following: /var/spool/uucp/system/D.systemnnnnppp
where nnnn is a hexadecimal sequence number and ppp is a subjob ID.
Once the command files (and data files, if necessary) are created, uucp calls the uucico daemon, which in turn attempts to contact the remote computer to deliver the files.
It is useful to issue the
command to determine
the exact name of the remote system before issuing
command provides information about
activities on a system.
Pathnames for the source and destination of the uucp transfer can contain only ASCII characters and can be one of the following: A full pathname A relative pathname A pathname preceded by ~user, where user is a login name on the specified system. The specified user's login directory is then considered the destination of the transfer. If the user specifies an invalid login name, the files are transferred to the public directory /var/spool/uucppublic, which is the default. A pathname preceded by ~/destination, where destination is appended to /var/spool/uucppublic.
A filename can be a pathname on the local system, or can have the following form: system!pathname
where system is taken from a list of system names that uucp knows about.
The destination system name (destination) can also be a list of names, such as the following:
In this case, an attempt is made to send the file along the specified route to the destination. Make sure that intermediate nodes in this route are willing to forward information and that they actually talk to the next system.
The shell pattern-matching characters ?, *, and [...] can be used in the pathname of the source file; the appropriate system expands them. However, shell pattern-matching characters cannot be used in the pathname of the destination file.
is a directory rather
than a file,
uses the last part of the
The system administrator should restrict the access to local files by users on other systems.
When transmitting files, uucp preserves execute permissions and grants read and write permissions to the owner, the group, and all others. (The uucp command owns the file.)
Sending files to arbitrary destination pathnames on other systems, or getting files from arbitrary source pathnames on other systems, often fails because of security restrictions. The files specified in the pathname must give read or write permission not only for the same group of users, but also for any group.
Protected files and files in protected directories owned by the requester
can be sent by
To copy file f1 from the local system to a remote system named hera, enter: uucp /u/geo/f1 hera!/u/geo/f1 To copy file f2 from the remote system hera and place it in the public directory, enter: uucp hera!geo/f2 /var/spool/uucppublic/f2 To place the f2 file in a directory other than the public directory, enter: uucp hera!geo/f2 /u/geo/f2
The following environment variables affect the execution of
[Compaq] Specifies the flow control used on the connection.
Permitted values are: HW, SW, and NONE. The
the remote system must also use the same flow control.
Provides a default value for the internationalization variables
that are unset or null. If
is unset or null, the corresponding value from the default locale is used.
If any of the internationalization variables contains an invalid setting,
the utility behaves as if none of the variables had been defined.
If set to a non-empty string value, overrides the values of
all the other internationalization variables.
Determines the locale for the behavior of ranges, equivalence
classes, and multicharacter colating elements within bracketed file name patterns.
Determines the locale for the interpretation of sequences
of bytes of text data as characters (for example, single-byte as opposed to
multibyte characters in arguments and input files) and the behavior of character
classes within bracketed file name patterns (for example, '[[:lower]]*').
Determines the locale that should be used to affect the format
and contents of diagnostic messages written to standard error.
Determines the format of date and time strings output by
Determines the location of message catalogues for the processing
Determines the time zone used with date and time strings.
[Compaq] Specifies the amount of time (in seconds) for
to try to establish a connection before it times out. A
value of 0 (zero) indicates an unlimited amount of time.
Commands: ct(1), cu(1), mailx(1), rmail(1), tip(1), uucico(8), uucleanup(8), uuencode(1), uulog(1), uuname(1), uupick(1), uusched(8), uusend(1), uustat(1), uuto(1), uux(1), uuxqt(1)