TS/MP 2.5 System Management Manual
3>ALTER SRV1, DEBUG ON
4>ALTER SRV1, HOMETERM $ZTNT.#PTA2AK3
5>ALTER SRV1, PROCESS $PROC
OBEY Command
Use the OBEY command to cause commands to be read from a specified command file.
{ OBEY } file-name
{ O }
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 runs 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 runs 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 runs 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
OBEYVOL Command
Use the OBEYVOL command to set the default node, volume, and subvolume for expansion of OBEY
command file names.
OBEYVOL [ [ \node.] $volume.subvolume ]
[ [ \node.] $volume ]
[ [ \node.] subvolume ]
[ \node ]
\node
OBEY Command 145










