uux(1c)
NAME
uux − unix to unix command execution
SYNTAX
uux [−] command-string
DESCRIPTION
The uux command gathers 0 or more files from various systems, executes a command on a specified system and sends standard output to a file on a specified system.
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 may be a full pathname, a pathname preceded by ~xxx, where xxx is a userid on the specified system and is replaced by that user’s login directory, or anything else prefixed by the current directory.
For example, the command
uux "!diff usg!/usr/dan/f1 pwba!/a4/dan/f1 > !fi.diff"
gets the f1 files from the usg and pwba machines, executes a diff command and puts the results in f1.diff in the local directory.
Any special shell characters such as <>;| should be quoted either by quoting the entire command-string, or quoting the special characters as individual arguments.
The uux command attempts to get all files to the execution system. If both the file and command are located on different remote sites, the file is first brought to the local system and is then transferred to the execution system.
For files that are used as arguments to a command and not be processed by uux at the local system, the file name must be escaped by using parentheses. For example, the command
uux a!uucp b!/usr/file c!/usr/file
sends a uucp command to system “a”. The /usr/file is transferred from system “b” to the local system and then shipped along to system “a”. When /usr/file arrives at system “a” the uucp command executes and sends /usr/file to system “c”.
The uux command notifies you if the requested command on the remote system was disallowed. The response comes by remote mail from the remote machine.
OPTIONS
−Reads stdin.
−nSends no notification to user.
WARNING
An installation may, and for security reasons generally will, limit the list of commands executable on behalf of an incoming request from uux. Typically, a restricted site will permit little other than the receipt of mail via uux.
RESTRICTIONS
Only the first command of a shell pipeline may have a system-name!. All other commands are executed on the system of the first command.
The use of the shell metacharacter * will probably not do what you want it to do.
The shell tokens << and >> are not implemented.
There is no notification of denial of execution on the remote machine.
Only commands listed in /usr/lib/uucp/L.cmds on the remote system will be executed at the remote system.
FILES
/usr/spool/uucpspool directory
/usr/lib/uucp/*other data and programs
SEE ALSO
uucp(1c)
“Uucp Implementation Description” ULTRIX-32 Supplementary Documents Vol. III:Programmer