¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«
nn
5.30.3 Parameter
TGT
This is the keyword to define a new rule (pattern).
target
Specifies the rule (pattern) to react on. The target is a regular expression pattern
which is matched against the text of the messages that Hercules issues.
CMD
This is the keyword to specify a command for a previously defined rule.
consolecmd
Specifies the command to be executed if a target rule matches. The associated
command must be a valid Hercules console command.
LIST
List all rules/commands or list only rule/command at index nn.
nn
Number of the index to be listed or deleted.
5.30.4 Examples
Example 1:
Define the following target rule and the related command to be issued:
Check for message HHC01600E ("Unknown Hercules command") and issue "?" command (List all valid
commands).
HAO TGT HHC01600E
HAO CMD HELP