Repeating a Series of Commands in the Command History

There is an additional feature for advanced users to facilitate repeating a particular series of GWCON or CONFIG commands. C1, C2,...,Cn in the Command History is referred to as a repeat sequence. This feature may be more convenient than simply using Ctrl-Band Ctrl-Fwhen you must repeat a given task that requires multiple commands. Enter Ctrl-R(repeat) to set the start of the repeat sequence at command C1. Enter Ctrl-N(next) successively to retrieve the next command(s) in the repeat sequence. Commands are not automatically entered, but are placed on the current command line allowing you to modify or enter the command.

To produce the desired behavior of a repeat sequence, the ®rst command retrieved using the ®rstCtrl-N(next) depends on the manner in which the start of the repeat sequence was set using Ctrl-R(repeat).

Setting the start of the repeat sequence with Ctrl-Rcan be done in two ways:

1.When C1 is initially entered

2.When C1 is retrieved from the Command History with Ctrl-Bor Ctrl-F.

Starting a Repeat Sequence As Commands Are Entered

If you enter Ctrl-Ras command C1 is being keyed in, and then enter commands C2, C3... Cn. Ctrl-Nwill successively bring commands C1, C2, ... Cn, C1, C2, ...

Cn, C1, ... to the command line.

In Example 1, the start of the repeat sequence is set as the ®rst command is keyed in. The user knows ahead of time that the same commands to be entered in GWCON need to be repeated in CONFIG.

Example 1

1.As the ®rst command in the sequence is keyed in, useCtrl-R(repeat) to set the start of the repeat sequence.

*talk 5

+event Ctrl-R

then press Enter to set the start of the repeat sequence.

2.Continue typing the subsequent commands in the sequence:

Event Logging System user console ELS>display sub les ELS>display sub lec

ELS>exit

+

3.To enter these same commands in CONFIG, press

Ctrl-P (the default OPCON intercept character) and go to CONFIG.

+-press Ctrl-P- *talk 6

Config>Ctrl-Nfor NEXT to retrieve the start of this sequence-

Config>event Enter

Event Logging System user configuration

ELS config>Ctrl-Nfor NEXT to retrieve the next command in sequence-

ELS config>display sub les Enter

ELS config>Ctrl-Nfor NEXT to retrieve the next command in sequence-

ELS config>display sub lec Enter

22MRS V3.2 Software User's Guide

Page 58
Image 58
IBM SC30-3681-08 Repeating a Series of Commands in the Command History, Starting a Repeat Sequence As Commands Are Entered