Pathway/XM System Management Manual
PXMCOM Commands
Compaq NonStop™ Pathway/XM System Management Manual—426761-001
11-43
OBEY
OBEY
This command causes commands to be read from a specified command file.
file-name
specifies a file name. The file can be a disk file, terminal, or process from which
PXMCOM or PXMCFG reads commands or statements. file-name can also be
the name of a DEFINE.
Considerations
•
PXMCOM reads and executes commands from the named file until it encounters an
EXIT command or the end of the file. After the end of the file, PXMCOM closes the
command file and command input reverts to the file from which the OBEY
command was read. Multiple OBEY commands can appear within a command file;
you can nest command files to a depth of four.
•
If PXMCOM detects an error while processing the commands from a command file,
it closes that file and any other command files currently open (in the case of nested
command files). If the original input file for PXMCOM is a terminal, PXMCOM
displays a prompt on the terminal. If the input file is not a terminal, PXMCOM
terminates.
Examples
The following command reads and executes the commands contained in the file
MFG.CMDSFILE. In this example, both the subvolume and the file identifier are
specified:
OBEY MFG.CMDSFILE
The following command also reads and executes the commands contained in the file
CMDSFILE. However, because no subvolume was specified, PXMCOM or PXMCFG
looks for the file in the subvolume from which you issued the command:
OBEY CMDSFILE
In the following example, the file name is a DEFINE that you specify before starting
PXMCOM:
12> ADD DEFINE =CMD, CLASS MAP, FILE $DATA.PW.CONFIG2
13> PXMCOM $PM1
= OBEY =CMD
OBEY file-name