TS/MP System Management Manual (G06.24+, H06.03+)
PATHCOM Operation Commands
NonStop TS/MP System Management Manual—541819-001
10-10
OBEY Command
OBEY Command
Use the OBEY command to cause commands to be read from a specified command
file.
file-name
specifies a HP file name. The file can be a disk file, terminal, or process from
which PATHCOM reads commands. file-name can also be the name of a
DEFINE.
Considerations
•
PATHCOM 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, PATHCOM
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 PATHCOM 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 PATHCOM is a terminal,
PATHCOM displays a prompt on the terminal. If the input file is not a terminal,
PATHCOM terminates.
Examples
This 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
This command also reads and executes the commands contained in the file
CMDSFILE. However, because no subvolume was specified, PATHCOM looks for the
file in the subvolume from which you issued the command:
OBEY CMDSFILE
In this example, the file name is a DEFINE that you specify before starting PATHCOM:
12> ADD DEFINE =CMD, CLASS MAP, FILE $DATA.PW.CONFIG2
13> PATHCOM $PM1
= OBEY =CMD
{ OBEY } file-name
{ O }