Using A Command (Obey) File - HP Guardian User Manual

Hide thumbs Also See for Guardian:
Table of Contents

Advertisement

Starting and Controlling Processes With TACL

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:
COMMENT
--
WHO
COMMENT
--
FILES $GERT.STEIN
COMMENT
--
SETPROMPT VOLUME
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.):
14> O $GERT.STEIN.NFO
The TACL program reads the NFO file, executes the commands sequentially, and
displays this information:
COMMENT
--
WHO
Home terminal: $GERT
TACL process: \MEL.$Z103
Primary CPU: 4 (VLX)
Default Segment File: $GERT.#6539
Pages allocated: 8
Bytes Used: 13364 (0%)
Current volume:
Saved volume:
Userid: 6,66
COMMENT
--
FILES $GERT.STEIN
$GERT.STEIN
BELL
BOOK
COMMENT Set my TACL prompt to my current volume
SETPROMPT VOLUME
$GERT 15>
Execute a WHO Command
List all files in $GERT.STEIN
Set my TACL prompt to my current volume
Execute a WHO Command
Backup CPU: 5 (VLX)
Pages Maximum: 1024
Bytes Maximum: 2097152
$GERT.STEIN
$WELL.RHALL
Username: SUPPORT.STEIN
List all files in $GERT.STEIN
CANDLE
NFO
Guardian User's Guide —425266-001
Security: "NUNU"
PATIENCE
SARAH
4 -8
Using a Command (OBEY) File

Advertisement

Table of Contents
loading

Table of Contents