50
For example, if you selected
expect
, entered “Login:” as the String, and checked the nocase option, you would
see the following display:
Figure 9: Script Command Dialog
When you press
[OK]
, the command, argument, and option settings are formulated into a single script line and
placed in the script.
Script Commands
The following script commands can be inserted into your list:
Script Command
Description
expect [-nocase]
string
Wait until
string appears in the receive stream,
then proceed.
If -nocase is specified, then upper and lower
case letters are treated equally when scanning
for
string; otherwise, an exact match to string is
required.
prompt [-secret]
string
Display a message with
string as a prompt, and
wait for a reply. Your input will be stored as
response (see senditem below). If -secret is
specified, asterisks are echoed.
NOTE: If you press [Cancel] during your input,
the script is aborted.
send [-noreturn]
string
Transmit
string over the transmit stream. A
carriage return is automatically appended to
string, unless -noreturn is specified.