United States-English |
|
|
HP-UX Reference > Uuux(1)HP-UX 11i Version 3: February 2007 |
|
NAMEuux — UNIX system to UNIX system command execution DESCRIPTIONuux gathers zero or more files from various systems, executes a command on a specified system, then sends standard output to a file 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:
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:
WARNINGSOnly the first command of a shell pipeline can 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. The execution of commands on remote systems takes place in an execution directory known to the UUCP subsystem. All files required for the execution are put into this directory unless they already reside on that machine. Therefore, the simple file name (without path or machine reference) must be unique within the uux request. The following command does not work: uux "a!diff b!/usr/dan/xyz c!/usr/dan/xyz > !xyz.diff" but the command: uux "a!diff a!/usr/dan/xyz c!/usr/dan/xyz > !xyz.diff" works (if diff is a permitted command). Protected files and files that are in protected directories that are owned by the requester can be sent in commands using uux. However, if the requester is root, and the directory is not searchable by other, the request fails. FILES
SEE ALSOmail(1), uuclean(1M), uucp(1).
|
Printable version | ||
|