DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using UUCP and dialup commands

Executing commands on remote UNIX systems

Use the uux(C) command to execute commands on remote UUCP systems. For security reasons, the commands available for remote execution on a computer are often very limited. A computer's /usr/lib/uucp/Permissions file lists the commands that can be executed remotely on that computer. If you attempt to execute a command not listed in this file, you receive mail indicating that the command cannot be executed on the computer in question.

The format of uux is:

uux [options] command_line

The command_line argument looks like any other UNIX command line, with the exception that commands and filenames might be prefixed with site-name!.

The following is an example of how to execute a command on a remote system. The command causes /tmp/printfile on rachel to be sent to rachel's default printer:

uux rachel!lp rachel!/tmp/printfile

The following is an example of how to execute a command on a local system, on files gathered by uux from remote systems. Suppose that your local computer is connected to both rachel and kate. Suppose also that you want to compare the contents of /tmp/chpt1 on rachel with /tmp/chpt1 on kate. To do so, enter the following command:

uux "diff rachel!/tmp/chpt1 kate!/tmp/chpt1 > diff.file"

This command compares the contents of the files on rachel and kate and places the output in diff.file in the current directory on the local computer. Since there is no site name prefixed to the diff command, the command is executed locally.

Note that, in the example above, the uux command line is placed in quotation marks. This is because it contains the redirect symbol (>). In general, place the uux command line in quotation marks whenever the command line contains special shell characters such as ``<'', ``>'', and ``|''.


Next topic: Dialing up remote systems
Previous topic: Retrieving files from the public directory

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005