COHERENT manpages
This page displays the COHERENT manpage for uucp [Spool files for transmission to other systems].
List of available manpages
Index
uucp -- Command
Spool files for transmission to other systems
uucp [ -cCdfmr ] [-nuser] [-xactivity] source ... dest
The command uucp spools every file source for copying to dest. source and
dest can specify a remote system.
uucp recognizes the following options:
-C Copy the source file into spool directory; same as option -p. This is
the default.
-c Do not copy the source file into spool directory; rather, use the file
itself. The file must be readable both by yourself and by the daemon
uucico. If the file is removed before uucico processes it, the
transmission of the file will fail.
-d Create directories as required on the destination system. This is the
default.
-f Do not create any directories on the remote system. If directories do
not already exist, abort copying the file.
-ggrade
Assign a grade (a single ASCII character, from `0' through `z') to
indicate the importance of the file being transmitted. The lower the
ASCII value of grade, the more important the file; thus, `0' is the
highest grade and `z' the lowest.
-I file
Read the configuration for the remote system from file instead of from
/usr/lib/uucp/sys, which is the default.
-j Report the job's process identifier. If you wish, you can use this
identifier with the command uustat to kill the job.
-m Send mail to requester when the file is sent; report whether the job was
executed successfully.
-nuser
Send mail to user on destination system when the file is received. user
can contain a path. Note that user is relative to the destination
machine, not to originating machine or to any intervening machine. For
example, consider the command:
uucp -nlepanto!fred myfile joe!/tmp
Here, you are copying myfile from your machine into directory /tmp on
machine joe, and sending notification to user fred on machine lepanto.
If, however, machine joe does not know how to address machine lepanto,
then fred will never be notified of the transfer.
-p Copy the source file into spool directory; same as -C. This is the
default.
-R Copy directories recursively.
-r Spool transfer request, but do not initiate uucico.
-s file
Write status upon completion of job into file.
-u user
Set user name to user.
-W Do not prefix the file's name with the name of the current directory.
-xactivity
Log a given activity. These logs can help you debug problems with UUCP.
uucp recognizes the following activities:
abnormal
Log abnormal events that occur while spooling a file for copying.
config
Log problems that arise with reading or interpreting the
configuration files dial, port, and sys.
execute
Log each step uucp takes as it executes.
spooldir
Log activity that involved the UUCP spooling directory
/usr/spool/uucp and its subdirectories.
uucp writes its logging information into file
/usr/spool/uucp/.Admin/audit.local.
Examples
The first example copies file foo to directory /bar on system george:
uucp foo george!/bar
The next example copies file /foo from system george into directory /tmp on
your system:
uucp george!/foo /tmp
The next example copies file /foo from system george into file or directory
/bar on system ivan:
uucp george!/foo ivan!/bar
Note that this assumes your system can talk to both george and ivan and
that your system has permission to read file /foo on system george as well
as to write file /bar on system ivan.
The next example downloads files /foo and /bar from remote systems ivan and
george into directory /tmp on your system:
uucp ivan!/foo george!/bar /tmp
The last example downloads file foo from system ivan via system george:
uucp george!ivan!foo
For an example of using the command find with uucp to spool files
automatically, see the entry for find.
Files
/usr/lib/uucp/sys -- List of reachable systems
/usr/spool/uucp/.Log/*/sitename -- uucp activities log files for sitename
/usr/spool/uucp/sitename -- Spool directory for work
See Also
commands,
mail,
uucico,
UUCP,
uudecode,
uuencode,
uutouch,
uuxqt
Notes
uucp was written by Ian Lance Taylor (ian@airs.com).







