
9: Device Ports
SLC™ 8000 Advanced Console Manager User Guide
204
Control Flow Commands
The
control flow
commands allow conditional execution of blocks of other commands. The
preprocessor treats these as Primary commands, allowing them to appear anywhere in a script
that a Primary command is appropriate.
Table 9-22 Control Flow Commands
expr
This command evaluates an arithmetic expression and returns the result. The
expr
command will only be used in combination with the
set command
to generate a
value for a variable. Syntax:
expr <value> <operation> <value>
Each
<value>
will be either a word or a variable reference, and <operation> an
arithmetic operation.
timestamp
This command returns the current time of day as determined by the
SLC
. The
timestamp
command will only be used in combination with the
set command
to produce the value for a variable. Syntax:
timestamp <format>
where
<format>
is a quoted string.
format
The
format
command is analogous to the C language sprintf(). The
format
command will only be used in combination with the
set command
to produce the
value for a variable. Syntax:
format <format string> <value 1> <value 2> ... <value n>
where <format string> will be a quoted string. Each of the <value x> elements will be
a word, a quoted string or a variable reference.
Command
Description
while
The
while
command executes an associated block of commands as long as its
Boolean expression evaluates to TRUE. After each iteration the Boolean expression
is re-evaluated; when the Boolean expression evaluates to FALSE execution
passes to the first command following the associated block. Each command within
the block must be a Primary command. Syntax:
while {<Boolean expression>} {
command 1
command 2
...
command n
}
Command
Description
Содержание SLC 8000 Series
Страница 1: ...Part Number 900 704 R Revision R November 2019 SLC 8000 Advanced Console Manager User Guide ...
Страница 72: ...6 Basic Parameters SLC 8000 Advanced Console Manager User Guide 72 Figure 6 2 Network Network Settings 2 of 2 ...
Страница 88: ...6 Basic Parameters SLC 8000 Advanced Console Manager User Guide 88 Figure 6 7 Network VPN 1 of 2 ...
Страница 149: ...8 USB SD Card Port SLC 8000 Advanced Console Manager User Guide 149 Figure 8 4 Devices USB Modem ...
Страница 174: ...9 Device Ports SLC 8000 Advanced Console Manager User Guide 174 Figure 9 8 Device Ports RPMs Add Device ...
Страница 313: ...13 Maintenance SLC 8000 Advanced Console Manager User Guide 313 Figure 13 12 About SLC ...