2 .\" Copyright 1989 AT&T Copyright (c) 1995, Sun Microsystems, Inc. All Rights Reserved Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
3 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
4 .\" http://www.opengroup.org/bookstore/.
5 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
6 .\" This notice shall appear on any product containing this material.
7 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
9 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
10 .TH UUX 1C "Mar 28, 1995"
12 uux \- UNIX-to-UNIX system command execution
16 \fBuux\fR [\fB-\fR] [\fB-bcCjnprz\fR] [\fB-a\fR \fIname\fR] [\fB-g\fR \fIgrade\fR]
17 [\fB-s\fR \fIfilename\fR] [\fB-x\fR \fIdebug_level\fR] \fIcommand-string\fR
23 The \fBuux\fR utility will gather zero or more files from various systems,
24 execute a command on a specified system and then send standard output to a file
25 on a specified system.
28 \fBNote:\fR For security reasons, most installations limit the list of
29 commands executable on behalf of an incoming request from \fBuux\fR, permitting
30 only the receipt of mail (see \fBmail\fR(1)). (Remote execution permissions are
31 defined in \fB/etc/uucp/Permissions\fR.)
34 The \fIcommand-string\fR is made up of one or more arguments that look like a
35 shell command line, except that the command and file names may be prefixed by
36 \fIsystem-name\fR\fB!\fR. A null \fIsystem-name\fR is interpreted as the local
40 File names may be one of the following:
45 An absolute path name.
51 A path name preceded by \fB~\fR\fIxxx\fR, where \fIxxx\fR is a login name on
52 the specified system and is replaced by that user's login directory.
56 Anything else is prefixed by the current directory.
59 As an example, the command:
63 example% \fBuux "!diff sys1!/home/dan/filename1 \e
64 sys2!/a4/dan/filename2 > !~/dan/filename.diff"\fR
71 will get the \fBfilename1\fR and \fBfilename2\fR files from the \fBsys1\fR and
72 \fBsys2\fR machines, execute a \fBdiff\fR(1) command and put the results in
73 \fBfilename.diff\fR in the local \fIPUBDIR\fR\fB/dan/\fR directory.
74 \fIPUBDIR\fR is a public directory defined in the \fBuucp\fR source. By
75 default, this directory is \fB/var/spool/uucppublic\fR.
78 Any special shell characters (such as \fB< > ; |\fR) should be quoted either by
79 quoting the entire \fIcommand-string\fR, or quoting the special characters as
80 individual arguments. The redirection operators \fB>>\fR, \fB<<\fR, \fB>|\fR,
81 and \fB>&\fR cannot be used.
84 \fBuux\fR will attempt to get all appropriate files to the specified system
85 where they will be processed. For files that are output files, the file name
86 must be escaped using parentheses. For example, the command:
90 example% \fBuux "a!cut -f1 b!/usr/filename > c!/usr/filename"\fR
97 gets \fB/usr/filename\fR from system \fBb\fR and sends it to system \fBa\fR,
98 performs a \fBcut\fR command on that file and sends the result of the \fBcut\fR
99 command to system \fBc\fR.
102 \fBuux\fR will notify you if the requested command on the remote system was
103 disallowed. This notification can be turned off by the \fB-n\fR option. The
104 response comes by remote mail from the remote machine.
108 The following options are supported:
115 The standard input to \fBuux\fR is made the standard input to the
116 \fIcommand-string\fR.
122 \fB\fB-a\fR \fIname\fR\fR
125 Uses \fIname\fR as the user job identification replacing the initiator user-id.
126 (Notification will be returned to user-id \fIname\fR.)
135 Returns whatever standard input was provided to the \fBuux\fR command if the
136 exit status is non-zero.
145 Does not copy local file to the spool directory for transfer to the remote
155 Forces the copy of local files to the spool directory for transfer.
161 \fB\fB-g\fR \fIgrade\fR\fR
164 \fIgrade\fR can be either a single letter, number, or a string of alphanumeric
165 characters defining a service grade. The \fBuuglist\fR(1C) command determines
166 whether it is appropriate to use the single letter, number, or a string of
167 alphanumeric characters as a service grade. The output from the \fIuuglist\fR
168 command will be a list of service grades that are available or a message that
169 says to use a single letter or number as a grade of service.
178 Outputs the jobid string on the standard output which is the job
179 identification. This job identification can be used by \fBuustat\fR(1C) to
180 obtain the status or terminate a job.
189 Does not notify the user if the command fails.
198 Same as \fB\(mi\fR\&. The standard input to \fBuux\fR is made the standard
199 input to the \fIcommand-string\fR.
208 Does not start the file transfer, but just queues the job.
214 \fB\fB-s\fR \fIfilename\fR\fR
217 Reports status of the transfer in \fIfilename\fR. This option is accepted for
218 compatibility, but it is ignored because it is insecure.
224 \fB\fB-x\fR \fIdebug_level\fR\fR
227 Produces debugging output on the standard output. \fIdebug_level\fR is a number
228 between 0 and 9. As \fIdebug_level\fR increases to 9, more detailed debugging
229 information is given.
238 Sends success notification to the user.
241 .SH ENVIRONMENT VARIABLES
244 See \fBenviron\fR(5) for descriptions of the following environment variables
245 that affect the execution of \fBuux\fR: \fBLANG\fR, \fBLC_ALL\fR,
246 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
250 The following exit values are returned:
257 Successful completion.
273 \fB\fB/etc/uucp/*\fR\fR
276 other data and programs
282 \fB\fB/etc/uucp/Permissions\fR\fR
285 remote execution permissions
291 \fB\fB/usr/lib/uucp/*\fR\fR
300 \fB\fB/var/spool/uucp\fR\fR
309 See \fBattributes\fR(5) for descriptions of the following attributes:
317 ATTRIBUTE TYPE ATTRIBUTE VALUE
319 Interface Stability Standard
325 \fBcut\fR(1), \fBmail\fR(1), \fBuucp\fR(1C), \fBuuglist\fR(1C),
326 \fBuustat\fR(1C), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5)
330 The execution of commands on remote systems takes place in an execution
331 directory known to the \fBuucp\fR system.
334 All files required for the execution will be put into this directory unless
335 they already reside on that machine. Therefore, the simple file name (without
336 path or machine reference) must be unique within the \fBuux\fR request. The
337 following command will NOT work:
341 example% \fBuux "a!diff b!/home/dan/xyz c!/home/dan/xyz > !xyz.diff"\fR
352 example% \fBuux "a!diff a!/home/dan/xyz c!/home/dan/xyz > !xyz.diff"\fR
359 \fIwill\fR work (if \fBdiff\fR is a permitted command.)
362 Protected files and files that are in protected directories that are owned by
363 the requester can be sent in commands using \fBuux\fR. However, if the
364 requester is root, and the directory is not searchable by "other", the request
368 The following restrictions apply to the shell pipeline processed by \fBuux\fR:
373 In gathering files from different systems, pathname expansion in not performed
374 by \fBuux\fR. Thus, a request such as
378 \fBuux "c89 remsys!~/*.c"\fR
383 would attempt to copy the file named literally \fB*.c\fR to the local system.
389 Only the first command of a shell pipeline may have a \fIsystem-name\fR\fB!\fR.
390 All other commands are executed on the system of the first command.
396 The use of the shell metacharacter \fB*\fR will probably not do what you want
403 The shell tokens \fB<<\fR and \fB>>\fR are not implemented.
409 The redirection operators \fB>>\fR, \fB<<\fR, \fB>|\fR, and \fB>&\fR cannot be
416 The reserved word \fB!\fR cannot be used at the head of the pipeline to modify
423 Alias substitution is not performed.