HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

u
uux(1) uux(1)
NAME
uux - UNIX system to UNIX system command execution
SYNOPSIS
uux [ options ] command-string
DESCRIPTION
uux gathers zero or more files from various systems, executes a command on a specified system, then
sends standard output to a le on a specified system. Note that, for security reasons, many installations
limit the list of commands executable on behalf of an incoming request from
uux. Many sites will permit
little more than the receipt of mail (see mail(1), mailx(1), and elm(1)) via
uux.
The command-string 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 system-name
!. A null system-name is interpreted as the
local system.
File names can be one of the following:
A full path name;
A path name preceded by
˜xxx where xxx is a login name on the specified system and is replaced
by that user’s login directory. Note that if an invalid login is specified, the default will be to the
public directory (/var/spool/uucppublic
);
A path name preceded by
˜/destination where destination is appended to
/var/spool/uucppublic
.
A simple file name (which is prefixed by the current directory). See uucp(1) for details.
For example, the command
uux "!diff usg!/usr/dan/file1 pwba!/a4/dan/file2 > !˜/dan/file.diff"
gets files file1 and file2 from machines usg and pwba, and executes a diff(1) command, placing
the results in
file.diff in the local directory /var/spool/uucppublic
.
Any special shell characters such as
<, >, ;,or | should be quoted, either by quoting the entire command-
string, or quoting the special characters as individual arguments.
uux attempts 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!cut -f1 b!/usr/file \(c!/usr/file\)
gets /usr/file from system b and sends it to system a, performs a cut command on the file, and
sends the result of the cut command to system
c.
uux notifies you if the requested command on the remote system was disallowed. The list of commands
allowed is specified in the Permissions file in /etc/uucp. The response comes by remote mail from
the remote machine.
uux recognizes the following options:
- The standard input to uux is made the standard input to the command-string.
-aname Use name as the user identification replacing the initiator user-ID (notification is
returned to the user).
-b Return whatever standard input was provided to the uux command if the exit status
is non-zero.
-c Do not copy the local file to the spool directory for transfer to the remote machine
(default).
-C Force the copy of local files to the spool directory for transfer.
-ggrade grade is a single letter/number; lower ASCII sequence characters cause the job to be
transmitted earlier during a particular conversation.
-j Output the jobid (the job identification ASCII string) on the standard output. This job
identification can be used by uustat to obtain the status or terminate a job (see
uustat(1)).
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 11029