home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: users Chapter 2
UNIX Commands
Next: Reference: uudecode





] [










Copy 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.



Do not copy files to the spool directory (the default).


Copy files to the spool directory for transfer.


Make directories for the copy when they don't exist (the default).


Do not make directories when they don't exist.

-g x

Set 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 .


Print the uucp job number.


When copy is complete, send mail to person who issued uucp command.

-n user

When copy is complete, send mail to user .


Queue job, but don't start transfer program ( uucico ).

-s file

Send transfer status to file (a full pathname); overrides -m .

-x n

Debug at level n (0-9); higher numbers give more output.


This shell script sends a compressed file to system orca :

cat send_it

compress $1
uucp -C -n$2 -m $1.Z orca\!/usr/spool/uucppublic
uncompress $1

With -C , the transfer is made on a copy in the spool directory. (Normally, uucp gets the file from its original location, so you couldn't rename it or uncompress it until the call goes through.) The script also notifies sender and recipient when the transfer finishes. Here's a sample run:

send_it chapter1 bob

Previous: Reference: users UNIX in a Nutshell: System V Edition Next: Reference: uudecode
Reference: users Book Index Reference: uudecode

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System