Secondary Commands - Lantronix SLC 8000 User Manual

Advanced console manager
Hide thumbs Also See for SLC 8000:
Table of Contents

Advertisement

Command
expect, expect_user,
expect_before,
expect_after,
expect_background
return

Secondary Commands

These are commands which provide data or other support to the Primary commands. These
commands are never used by themselves in a script. The preprocessor will require that these
commands always follow a left square bracket ('[') character and be followed on a single line by a
right bracket (']').
SLC™ 8000 Advanced Console Manager User Guide
Description
The
command waits for input and attempts to match it against one or
expect
more patterns. If one of the patterns matches the input the corresponding
(optional) command is executed. All
expect {<string 1> {command 1} <string 2> {command 2} ... <string n> {command
n}}
where
will either be a quoted string, a variable reference or the
<string x>
reserved word 'timeout.' The command x is optional, but the curly braces
('
' and '
') are required. If present it must be a primary command.
{
}
The
command terminates execution of the script and returns an optional
return
value to the calling environment. Syntax:
return <value>
where
can be a word or a variable reference.
<value>
commands have the same syntax:
expect
8: Device Ports
142

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SLC 8000 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF