![HP Guardian Скачать руководство пользователя страница 81](http://html.mh-extra.com/html/hp/guardian/guardian_user-manual_165061081.webp)
Defining Function Keys and Writing Macros
Guardian User’s Guide — 425266-001
5 -5
Creating a Library File for Your Function Keys
Differences Between Alias and Macro Definitions
Although alias and macro definitions appear similar, they are different. An alias
definition is a single command name. It cannot contain command or dummy arguments,
although you can pass arguments when you use the definition. A macro definition can
contain command arguments and dummy arguments. A macro definition can also
contain a sequence of TACL commands.
This example shows three ways to write a function-key definition for the STATUS
command:
•
The first example uses an alias definition because it defines the F8 key to invoke the
STATUS command. The STATUS command alone uses the default process as an
argument. To pass arguments to the STATUS command when you invoke it, enter
the values in proper order, including all required punctuation, and then press F8. For
example, enter:
Then press F8.
•
The second example uses a macro definition because it executes a command that
includes two command arguments and all required punctuation. It also contains two
commands (STATUS and COMMENT). To execute the STATUS *, TERM
command, you simply press F8.
•
The third example also uses a macro definition because it includes three dummy
arguments, which you can pass, in proper order, any acceptable values. The required
punctuation is also included in the definition. To execute the STATUS *, TERM
command, you enter:
Then press F8 (no value is passed to the third argument, %3%). This macro
definition is further described in
Passing a Value to a Macro Definition
on page 5-7.
?SECTION F8 ALIAS
STATUS
?SECTION F8 MACRO
STATUS *, TERM
COMMENT Info about processes running at this terminal
?SECTION F8 MACRO
STATUS %1%, %2% %3%
12> *, USER
12> * TERM
Содержание Guardian
Страница 24: ...About This Guide Guardian User s Guide 425266 001 xxii Your Comments Invited ...
Страница 30: ...Part I Using the Compaq Tandem Advanced Command Language TACL Guardian User s Guide 425266 001 ...
Страница 100: ...Part II Managing Files Using the File Utility Program FUP Guardian User s Guide 425266 001 ...
Страница 146: ...Part III Managing Disk and Tape Processes Guardian User s Guide 425266 001 ...
Страница 232: ...Backing Up and Restoring Disk Information Guardian User s Guide 425266 001 11 26 Backcopy Examples ...
Страница 234: ...Part IV Using the Spooler and Its Utilities Guardian User s Guide 425266 001 ...
Страница 248: ...Introduction to the Spooler Guardian User s Guide 425266 001 12 14 Sending Output to a SPOOL DEFINE ...
Страница 300: ...Performing Routine Spooler Operations Using Spoolcom Guardian User s Guide 425266 001 14 38 Problem Solving Summary ...
Страница 322: ...Part V Security Features and Other Guardian Utilities Guardian User s Guide 425266 001 ...
Страница 368: ...Monitoring Event Messages Guardian User s Guide 425266 001 17 14 Using the Event Viewer ...
Страница 378: ...Displaying Version and System Information Guardian User s Guide 425266 001 18 10 Task 2 Interpret SYSINFO Output ...
Страница 410: ...Monitoring Hardware Components Guardian User s Guide 425266 001 19 32 Automating System Monitoring ...
Страница 460: ...Index Guardian User s Guide 425266 001 Index 24 Special Characters ...