Using a command (obey) file – HP NonStop G-Series User Manual
Page 72
Starting and Controlling Processes With TACL
Guardian User’s Guide — 425266-001
4 -8
Using a Command (OBEY) File
Using a Command (OBEY) File
A command file is an EDIT disk file (file code 101) that contains one or more TACL
commands. You use the OBEY command to direct the TACL program to read the
command file and execute the commands sequentially.
To put comment lines in command files, use the COMMENT command. Comments can
occupy more than one line, but each line must begin with the COMMENT command.
This example shows a command file named $GERT.STEIN.NFO that issues the three
commands WHO, FILES, and SETPROMPT:
When you use a command file, the commands and the comments are displayed on the
screen. This example invokes the NFO command file shown above. (You can abbreviate
the OBEY command with an O.):
The TACL program reads the NFO file, executes the commands sequentially, and
displays this information:
COMMENT -- Execute a WHO Command
WHO
COMMENT -- List all files in $GERT.STEIN
FILES $GERT.STEIN
COMMENT -- Set my TACL prompt to my current volume
SETPROMPT VOLUME
14> O $GERT.STEIN.NFO
COMMENT -- Execute a WHO Command
WHO
Home terminal: $GERT
TACL process: \MEL.$Z103
Primary CPU: 4 (VLX) Backup CPU: 5 (VLX)
Default Segment File: $GERT.#6539
Pages allocated: 8 Pages Maximum: 1024
Bytes Used: 13364 (0%) Bytes Maximum: 2097152
Current volume: $GERT.STEIN
Saved volume: $WELL.RHALL
Userid: 6,66 Username: SUPPORT.STEIN Security: "NUNU"
COMMENT -- List all files in $GERT.STEIN
FILES $GERT.STEIN
$GERT.STEIN
BELL BOOK CANDLE NFO PATIENCE SARAH
COMMENT Set my TACL prompt to my current volume
SETPROMPT VOLUME
$GERT 15>