Event Management Service (EMS) Analyzer Manual

Command Descriptions
Event Management Service (EMS) Analyzer Manual133700
5-3
Question Mark (?)
character-string
is the first few characters of the command line to be re-executed. The most recent
command line whose first characters match the string are re-executed.
Considerations
If you use an exclamation point (!) alone, the previous command is re-executed. The
exclamation point (!) alone is the same as ! -1.
If you specify a negative number and the associated command line is no longer in
the history buffer, you get an error message. (The history buffer of command lines is
1024 bytes in length.)
The exclamation point (!) command does not increment the command-line number
in the EMS Analyzer prompt. The display of command line numbers in the prompt
is controlled by the SETPROMPT
command.
The exclamation point (!) command can be issued only by an interactive user.
The exclamation point (!) command cannot be followed by another command on the
same line.
Examples
Question Mark (?)
The question mark (?) command causes a previous command line to be displayed.
-> INFO DISTRIBUTOR $Z123
-> STATUS DISTRIBUTOR $Z123
.
.
.
-> !-2 {Reexecute two commands ago
}
INFO DISTRIBUTOR $Z123
-> !STAT {Reexecute the most recent
command}
-> STATUS DISTRIBUTOR $Z123 {beginning with "STAT"
}
.
.
.
-> ! {Reexecute the most recent
command}
STATUS DISTRIBUTOR $Z123
.
.
.
? [ [ - ] number ]
[ character-string ]