HP-UX SNAplus2 R7 APPC Application Suite User's Guide
AREXEC
Using AREXEC
6 AREXEC
APPC Remote EXECution (
AREXEC) enables you to execute any single command on a remote computer. All output
of the command that goes to standard output or standard error output is also routed to your screen.
AREXEC uses the following transaction programs:
•
AREXEC, which runs on the local computer (requester TP)
•
AREXECD, which runs on the remote computer (provider TP)
6.1 AREXEC Configuration
If you have not already done so, install the asuite.tps file as described in Section 1.2.2, Configuring Your
System. This file provides the standard configuration for the provider TPs.
6.2 Using AREXEC
Use the following command syntax to invoke
AREXEC:
arexec [Options] RemoteSystemID Command
The simplest way to use
AREXEC is to specify only the RemoteSystemID (see Section 1.2.2, Configuring Your System)
and the command. For example, you can start
AREXEC
in the following way:
arexec RemoteSystemID ls \*.c
This command sends the command ls *.c to the specified remote computer.
AREXECD, the AREXEC
partner
program on the remote computer, executes the command, and displays the results as the output of
AREXEC on the
local computer. If you specify any of the options more than once, the system uses the last one entered.
Security parameters may also be required, depending on how your system is configured.
6.2.1 AREXEC Parameters and Options
The AREXEC
parameters and options are as follows:
RemoteSystemID
This parameter identifies the partner computer on which the
AREXECD
provider program runs. The
RemoteSystemID (partner LU name) can be a fully qualified partner LU name (FQPLU), a CPI-C symbolic
destination name,oran
ANAME alias.
For more information about RemoteSystemID, see Section 1.2.2, Configuring Your System.
Command
The command string to be executed on the remote computer. For example, if the user ID is anon, then a
command of ls would list the contents of anon’s home directory, /home/anon.
-m ModeName
The mode name. The default mode name is #INTER.
38