UUCP(1C) — UNIX Programmer’s Manual
NAME
uucp, uulog, uuname − unix to unix copy
SYNOPSIS
uucp [ option ] ... source-file ... destination-file
uulog [ option ] ...
uuname
DESCRIPTION
Uucp copies files named by the source-file arguments to the destination-file argument. A file name may be a path name on your machine, or may have the form
system-name!pathname
where ‘system-name’ is taken from a list of system names which uucp knows about. Shell metacharacters ?*[] appearing in the pathname part will be expanded on the appropriate system.
Pathnames may be one of
(1)a full pathname;
(2)a pathname preceded by ~user; where user is a userid on the specified system and is replaced by that user’s login directory;
(3)anything else is prefixed by the current directory.
If the result is an erroneous pathname for the remote system the copy will fail. If the destination-file is a directory, the last part of the source-file name is used.
Uucp preserves execute permissions across the transmission and gives 0666 read and write permissions (see chmod(2)).
The uucp command interprets the following options:
−c Use the source file when copying out rather than copying the file to the spool directory.
−d Make all necessary directories for the file copy. This is the normal action.
−esys Send the uucp command to the system designated by sys to be executed there. Note that this will only be successful if the remote system allows the uucp command to be executed there.
−m Send mail to the requester when the copy is complete.
−rn indicates the role which uucp is to play. If n is 1, uucp acts as a master in the transaction. If n is 0, uucp acts as a slave.
−sdir indicates that uucp is to use the directory dir as the spool directory for the transfer.
EXAMPLE
uucp pascal.doc texas!~steve/pascal.doc
The uucp command above sends the file pascal.doc to the user whose name is steve, on the system called texas.
Uulog maintains a summary log of uucp and uux(1) transactions.
The options cause uulog to print logging information:
−ssys Print information about work involving system sys.
−uuser
Print information about work done for the specified user.
The uuname utility lists the uucp names of known systems. The −l option returns the local system name.
FILES
/usr/spool/uucp - spool directory
/usr/lib/uucp/L.sys - List of system names and when to call them.
/usr/lib/uucp/L-dialcodes - List of ’phone numbers in L.sys.
/usr/lib/uucp/SYSTEMNAME - Name of this system.
/usr/lib/uucp/L-devices - List of device codes and speeds.
/usr/lib/uucp/USERFILE - List of users and required pathname prefixes.
/usr/lib/uucp/CMDLIST - List of commands for uuxqt to execute.
/usr/lib/uucp/uucico - copy in, copy out program; called by uucp
/usr/lib/uucp/uuxqt - command execution program; called by uucp
/usr/lib/uucp/uuclean - spool directory cleanup program; called by uucp
SEE ALSO
uux(1), mail(1)
D. A. Nowitz, Uucp Implementation Description
WARNING
The domain of remotely accessible files can (and for obvious security reasons, usually should) be severely restricted. You will very likely not be able to fetch files by pathname; ask a responsible person on the remote system to send them to you. For the same reasons you will probably not be able to send files to arbitrary pathnames.
BUGS
All files received by uucp will be owned by uucp.
The −m option will only work sending files or receiving a single file. (Receiving multiple files specified by special shell characters ?*[] will not activate the −m option.)
7th Edition