ONRPC(8,C) AIX Commands Reference ONRPC(8,C)
-------------------------------------------------------------------------------
onrpc
PURPOSE
Execute a command remotely.
SYNTAX
+--------+ +------+ +-- sitename --+
onrpc ---| one of |---| |---+- sitenumber -+--- command --- argument ---|
| +----+ | +- -d -+ +-- sitetype --+ ^ |
+-| -i |-+ +------------+
| -n |
+----+
Note: This command does not have MBCS support.
DESCRIPTION
The onrpc command program is used to execute commands on another system, in an
environment similar to that invoking the program. All environment variables
are passed, and the current working directory is preserved. To preserve the
working directory, the working file system must be either already mounted on
the host or be exported to it. Relative path names will only work if they are
within the current file system; absolute path names may cause problems.
Standard input is connected to standard input of the remote command, and
standard output and standard error from the remote command are sent to the
corresponding files for the onrpc command.
Notes:
1. The onrpc command cannot be run by the root user.
2. The onrpc command is the functional equivalent of the UNIX on command for
NFS. The AIX on command is the TCF version.
FLAGS
-i Interactive mode: use remote echoing and special character processing.
This option is needed for programs that expect to be talking to a terminal.
All terminal modes and window size changes are propagated.
-n No input: this option causes the remote program to get end-of-file when it
reads from standard input, instead of passing standard input from the
standard input of the onrpc program. For example, -n is necessary when
running commands in the background with job control.
Processed November 8, 1990 ONRPC(8,C) 1
ONRPC(8,C) AIX Commands Reference ONRPC(8,C)
-d Debug mode: print out some messages as work is being done.
RELATED INFORMATION
See the following commands: "rpc.rexd" and "rpcinfo."
Processed November 8, 1990 ONRPC(8,C) 2