BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / uux.0
UUX(1C) UNIX Programmer's Manual UUX(1C)
N\bNA\bAM\bME\bE
uux - unix to unix command execution
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
u\buu\bux\bx [ -\b- ] [ -\b-c\bcC\bCl\blL\bLn\bnp\bpr\brz\bz ] [ -\b-a\ba_\bn_\ba_\bm_\be ] [ -\b-g\bg_\bg_\br_\ba_\bd_\be ] [ -\b-x\bx_\bd_\be_\bb_\bu_\bg ]
command-string
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bU_\bu_\bx will gather zero or more files from various systems,
execute a command on a specified system and then send stan-
dard output to a file on a specified system.
The _\bc_\bo_\bm_\bm_\ba_\bn_\bd-_\bs_\bt_\br_\bi_\bn_\bg is made up of one or more arguments that
look like a Shell command line, except that the command and
file names may be prefixed by _\bs_\by_\bs_\bt_\be_\bm-_\bn_\ba_\bm_\be!\b!. A null _\bs_\by_\bs_\bt_\be_\bm-
_\bn_\ba_\bm_\be is interpreted as the local system.
File names may be one of
(1) a full path name;
(2) a path name preceded by ~\b~_\bu_\bs_\be_\br where _\bu_\bs_\be_\br is a login
name on the specified system and is replaced by that
user's login directory;
(3) a path name prefixed by ~\b~;\b; where ~\b~ is expanded to
the system's public directory (usually
/usr/spool/uucppublic);
(4) a partial pathname, which is prefixed by the
current directory.
As an example, the command
uux "!diff usg!/usr/dan/file1 pwba!/a4/dan/file2 >
!~/dan/file.diff"
will get the f\bfi\bil\ble\be1\b1 and f\bfi\bil\ble\be2\b2 files from the ``usg'' and
``pwba'' machines, execute a _\bd_\bi_\bf_\bf(1) command and put the
results in f\bfi\bil\ble\be.\b.d\bdi\bif\bff\bf in the local /usr/spool/uucppublic/dan/
directory.
Any special shell characters, such as <\b<>\b>;\b;|\b|, should be quoted
either by quoting the entire _\bc_\bo_\bm_\bm_\ba_\bn_\bd-_\bs_\bt_\br_\bi_\bn_\bg, or quoting the
special characters as individual arguments.
_\bU_\bu_\bx will attempt to get all files to the execution system.
For files that are output files, the file name must be
escaped using parentheses. For example, the command
uux a!wc b!/usr/file1 \(c!/usr/file2 \)
Printed 7/9/88 April 24, 1986 1
UUX(1C) UNIX Programmer's Manual UUX(1C)
get /\b/u\bus\bsr\br/\b/f\bfi\bil\ble\be1\b1 from system ``b'' and send it to system
``a'', perform a _\bw_\bc command on that file and send the result
of the _\bw_\bc command to system ``c''.
_\bU_\bu_\bx will notify you by mail if the requested command on the
remote system was disallowed. This notification can be
turned off by the -\b-n\bn option.
The following _\bo_\bp_\bt_\bi_\bo_\bn_\bs are interpreted by _\bu_\bu_\bx:
-\b- The standard input to _\bu_\bu_\bx is made the standard input to
the _\bc_\bo_\bm_\bm_\ba_\bn_\bd-_\bs_\bt_\br_\bi_\bn_\bg.
-\b-a\ba_\bn_\ba_\bm_\be
Use _\bn_\ba_\bm_\be as the user identification replacing the ini-
tiator user-id.
-\b-c\bc Do not copy local file to the spool directory for
transfer to the remote machine (this is the default).
-\b-C\bC Force the copy of local files to the spool directory
for transfer.
-\b-g\bg_\bg_\br_\ba_\bd_\be
_\bG_\br_\ba_\bd_\be is a single letter/number, from 0\b0 to 9\b9, A\bA to Z\bZ,
or a\ba to z\bz; 0\b0 is the highest, and z\bz is the lowest grade.
The default is A\bA; by comparison _\bu_\bu_\bc_\bp(1C) defaults to n\bn
and mail is usually sent at grade C\bC. Lower grades
should be specified for high-volume jobs, such as news.
-\b-l\bl Try and make a link from the original file to the spool
directory. If the link cannot be made, copy the file.
-\b-n\bn Do not notify the user when the command completes.
-\b-p\bp Same as -: The standard input to _\bu_\bu_\bx is made the stan-
dard input to the _\bc_\bo_\bm_\bm_\ba_\bn_\bd-_\bs_\bt_\br_\bi_\bn_\bg.
-\b-r\br Do not start the file transfer, just queue the job.
-\b-x\bx_\bd_\be_\bb_\bu_\bg
Produce debugging output on stdout. The debug is a
number between 0 and 9; higher numbers give more
detailed information. Debugging is permitted only for
privileged users (specifically, those with read access
to _\bL._\bs_\by_\bs(5).
-\b-z\bz Notify the user only if the command fails.
-\b-L\bL Start up _\bu_\bu_\bc_\bi_\bc_\bo with the -\b-L\bL flag. This will force calls
to be made to local sites only (see _\bu_\bu_\bc_\bi_\bc_\bo(8C)).
Printed 7/9/88 April 24, 1986 2
UUX(1C) UNIX Programmer's Manual UUX(1C)
F\bFI\bIL\bLE\bES\bS
/usr/spool/uucp spool directories
/usr/lib/uucp/* UUCP configuration data and daemons
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
uucp(1C), uucico(8C), uuxqt(8C).
W\bWA\bAR\bRN\bNI\bIN\bNG\bG
For security reasons, many installations will limit the list
of commands executable on behalf of an incoming request from
_\bu_\bu_\bx. Many sites will permit little more than the receipt of
mail (see _\bm_\ba_\bi_\bl(1)) via _\bu_\bu_\bx.
B\bBU\bUG\bGS\bS
Only the first command of a shell pipeline may have a
_\bs_\by_\bs_\bt_\be_\bm-_\bn_\ba_\bm_\be!\b!. All other commands are executed on the system
of the first command.
The use of the shell metacharacter *\b* will probably not do
what you want it to do.
The shell tokens <\b<<\b< and >\b>>\b> are not implemented.
When invoking _\bu_\bu_\bx from _\bc_\bs_\bh(1), the `!' character must be
prefixed by the `\' escape to inhibit _\bc_\bs_\bh's history mechan-
ism. (Quotes are not sufficient.)
Printed 7/9/88 April 24, 1986 3