respond

Provides responses to commands

Format:

TV::respond response command

Arguments:

response

The response to one or more commands. If you include more than one response, separate the responses with newline characters.

command

One or more commands that the CLI will execute.

Description:

Executes a command. The command argument can be a single command or a list of commands. In most cases, you will place this information within braces ({}). If the CLI asks questions while command is executing, you are not asked for the answer. Instead, the CLI uses the characters in the response string for it. If more than question is asked and response is used up, TV::respond starts over at the beginning of the response string. If response does not end with a newline, TV::respond appends one.

Do not use this command to suppress the MORE prompt in macros. You should instead use the following command:

dset LINES_PER_SCREEN 0

The most common values for response are y and n.

Note:   If you are using the TotalView GUI and the CLI at the same time, your CLI command may cause a dialog boxes to appear. You cannot use the TV::respond command to close or interact with these dialog boxes.

Examples:

TV::response {y} {exit}

Exits from TotalView. This command automatically answers the "Do you really wish to exit TotalView" question.

set f1 y
set f2 exit
TV::response $f1 $f2

A way to exit from TotalView without seeing the "Do you really wish to exit TotalView" question. Neither of these two uses is recommended. Instead, you can use "exit -force".

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0