Example of repeating a command, Using the obey command, Using the – HP Integrity NonStop H-Series User Manual

Page 19: Obey command

Advertising
background image

Using TNSVU

TNSVU User’s Guide528143-003

3 -5

Example of Repeating a Command

command-number

is the number associated with the previously issued command as displayed by the
HISTORY command. TNSVU displays an error message if the command-number
is not assigned to a command, or is not available on the command history list. For
more information, see

Reviewing Command History

on page 3-4.

command-prefix

is a string that represents the prefix of a previously issued command. If the
command prefix matches multiple previous commands, TNSVU repeats the most
recently executed match. TNSVU displays an error message if the command-prefix
does not match any command in the history list.

Entering a space between the ! and the command-number or command-prefix
arguments is optional.

Example of Repeating a Command

Using this example HISTORY command display:

myfile> history

0 log logfile

1 file myfile

2 procs

3 info

This example shows how to repeat the “info” command:

!3

This example shows how to repeat the “procs” command:

!p

Using the OBEY Command

The OBEY command reads and runs TNSVU commands from a text file whose name
you supply as an argument. You invoke the obey command from the command line or
interactively. You may not invoke an obey command within an obey file.

filename

is the name of an existing text file that contains TNSVU commands for the
application to run.

OBEY filename

Advertising
This manual is related to the following products: