NAME
uucp - Unix to Unix copy
SYNOPSIS
uuuuccpp [ options ] source-file destination-file
uuuuccpp [ options ] source-file... destination-directory
DESCRIPTION
The uucp command copies files between systems. Each file argument is
either a pathname on the local machine or is of the form system!path which is interpreted as being on a remote system. In the first form, the contents of the first file are copied to the second. In the second form, each source file is copied into the destination directory. A file be transferred to or from system2 via system1 by using system1!system2!path. Any pathname that does not begin with / or ~ will be appended to thecurrent directory (unless the -WW or --nnooeexxppaanndd option is used); this
resulting path will not necessarily exist on a remote system. A path-
name beginning with a simple ~ starts at the UUCP public directory; a pathname beginning with ~name starts at the home directory of the named user. The ~ is interpreted on the appropriate system. Note that some shells will interpret a simple ~ to the local home directory beforeuucp sees it; to avoid this the ~ must be quoted.
Shell metacharacters ? * [ ] are interpreted on the appropriate system, assuming they are quoted to prevent the shell from interpreting them first. The copy does not take place immediately, but is queued up for theuucico (8) daemon; the daemon is started immediately unless the -rr or
--nnoouuuucciiccoo switch is given. In any case, the next time the remote sys-
tem is called the file(s) will be copied. OOPPTTIIOONNSSThe following options may be given to uucp.
-cc,, --nnooccooppyy
Do not copy local source files to the spool directory. If they are removed before being processed by the uucico (8) daemon, thecopy will fail. The files must be readable by the uucico (8) dae-
mon, and by the invoking user.-CC,, --ccooppyy
Copy local source files to the spool directory. This is the default.-dd,, --ddiirreeccttoorriieess
Create all necessary directories when doing the copy. This is the default.-ff,, --nnooddiirreeccttoorriieess
If any necessary directories do not exist for the destination path, abort the copy.-RR,, --rreeccuurrssiivvee
If any of the source file names are directories, copy their con-
tents recursively to the destination (which must itself be a directory).-gg ggrraaddee,, --ggrraaddee ggrraaddee
Set the grade of the file transfer command. Jobs of a higher grade are executed first. Grades run 0 ... 9 A ... Z a ... z from high to low.-mm,, --mmaaiill
Report completion or failure of the file transfer by mail (1).-nn uusseerr,, --nnoottiiffyy uusseerr
Report completion or failure of the file transfer by mail (1) to the named user on the remote system.-rr,, --nnoouuuucciiccoo
Do not start uucico (8) daemon immediately; merely queue up the file transfer for later execution.-jj,, --jjoobbiidd
Print jobid on standard output. The job may be later cancelled bypassing the jobid to the -kk switch of uustat (1). It is possible
for some complex operations to produce more than one jobid, in which case each will be printed on a separate line. For exampleuucp sys1!~user1/file1 sys2!~user2/file2 ~user3
will generate two separate jobs, one for the system sys1 and one for the system sys2.-WW,, --nnooeexxppaanndd
Do not prepend remote relative path names with the current direc-
tory.-tt,, --uuuuttoo
This option is used by the uuto shell script. It causes uucp to
interpret the final argument as system!user. The file(s) are sent to ~/receive/USER/LOCAL on the remote system, where USER is from the final argument and LOCAL is the local UUCP system name. Also,uucp will act as though -notify user were specified.
-xx ttyyppee,, --ddeebbuugg ttyyppee
Turn on particular debugging types. The following types are rec-
ognized: abnormal, chat, handshake, uucp-proto, proto, port, con-
fig, spooldir, execute, incoming, outgoing. Only abnormal, con-
fig, spooldir and execute are meaningful for uucp.
Multiple types may be given, separated by commas, and the --ddeebbuugg
option may appear multiple times. A number may also be given, which will turn on that many types from the foregoing list; forexample, --ddeebbuugg 22 is equivalent to --ddeebbuugg aabbnnoorrmmaall,,cchhaatt..
-II ffiillee,, --ccoonnffiigg ffiillee
Set configuration file to use. This option may not be available,depending upon how uucp was compiled.
-vv,, --vveerrssiioonn
Report version information and exit.--hheellpp
Print a help message and exit.SEE ALSO
mail(1), uux(1), uustat(1), uucico(8)BUGS
Some of the options are dependent on the capabilities of the uucico (8) daemon on the remote system.The -n and -m switches do not work when transferring a file from one
remote system to another.File modes are not preserved, except for the execute bit. The result-
ing file is owned by the uucp user.
AUTHOR Ian Lance TaylorTaylor UUCP 1.07 uucp(1)