uucp [options] [source!]file [destination!]fileCopy a file (or group of files) from the source to the destination. The source and destination can be remote systems. The destination file can be a directory.
-cDo not copy files to the spool directory (the default).
-CCopy files to the spool directory for transfer.
-dMake directories for the copy when they don't exist (the default).
-fDo not make directories when they don't exist.
-gxSet grade (priority) of job. x is typically a single letter or digit, where a and 1 give the highest transfer priority. Use uuglist to show values for x.
-jPrint the uucp job number.
-mWhen copy is complete, send mail to person who issued uucp command.
-nuserWhen copy is complete, send mail to (notify) user.
-rQueue job, but don't start transfer program (uucico).
-sfileSend transfer status to file (a full pathname); overrides -m. Solaris accepts but ignores this option for security reasons.
-xnDebug at level n (0-9); higher numbers give more output.
This shell script sends a compressed file to system orca:
$cat send_it#! /bin/sh compress $1 uucp -C -n$2 -m $1.Z orca!/var/spool/uucppublic uncompress $1
With -C, the transfer is made from a copy in the spool directory. (Normally, uucp gets the file from its original location, so you can't rename it or uncompress it until the call goes through.) The script also notifies the sender and the recipient when the transfer finishes. Here's a sample run:
send_it chapter1 bob