HP NonStop G-Series User Manual
Page 166
![background image](/manuals/397048/166/background.png)
OBEY Command
EDIT Command Summary
058061 Tandem Computers Incorporated
4–87
OBEY Command
The OBEY command reads editor commands and text from a file.
What to Enter
OBEY [
filename [ QUIET ] ]
filename
is the name of a command file that contains editor commands and,
possibly, text. The file can be an unstructured, EDIT format, or
structured disk file, a nondisk device, or a process. EDIT reads records
from the command file until it detects the end-of-file, it reads an OBEY
command with no filename, or an error occurs.
QUIET
tells the EDIT program not to echo the commands and text it reads from
the command file.
How to Use OBEY
If your command file includes an OBEY command with a command
filename, EDIT completes the current command line, closes the current
command file, and reads commands from the newly specified
command file.
If your command file includes an OBEY command with no command
filename, EDIT closes the current command file and waits for commands
from the terminal. This means that any commands following the OBEY
command are not performed.
In a command file, precede each comment line with an asterisk (*). Any
editor commands preceded by an asterisk are not performed; lines of
text preceded by an asterisk are ignored. (See Example 2, following.)
EDIT reads records from the command file of the length specified with
the INLEN parameter of the SET command. The default record length is
132 bytes. (See the SET command, later in this section, for details.)