beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 250

background image

Appendix B Command Syntax

Scripting Guide

250

Command Command

Type

Description Syntax

ICONNAME

Alerting

Returns an icon’s name.

ICONNAME([%Port]])==>$Name

ICONSTATUS

Alerting

Returns an icon’s current status. ICONSTATUS([%Class[,$Name]])==>%Status

IF

(ENDIF)

Flow
Control

Evaluates an expression for TRUE or FALSE.
(If…Then statement)

IF…[ELSE…]ENDIF

INC

Variable

Adds one to a numeric variable’s value.

INC%Variable

JOIN

Variable Combines

the elements of an array into a string. JOIN($Array,$Delimiter)==>$String

KEY

Console
Message

Enters a character string to the specified console. KEY(%Port,$Keys[,%Timeout])==>%RetCode

LEFTSTR

Variable

Returns the leftmost specified number of
characters of a string expression.

LEFTSTR($String,%Count)==>$Substr

LEFTSTR

Variable

Returns the leftmost specified number of

characters of a string expression.

LEFTSTR($String,%Count)==>$Substr

LEN

Variable

Returns the number of characters in a string

expression.

LEN($StringExpr)==>%Count

LOG

File

Enters a message in a log. LOG(%LogType,$Message[,%Status])

LOWER

Variable Converts

uppercase characters to lowercase. LOWER($String)==>$Lowercase

MKDTEMP

File

Creates a unique temporary directory for I/O

access.

MKDTEMP($Pattern)==>$DirectoryName

MKSTEMP

File

Opens a unique temporary file for I/O access.

MKSTEMP($Pattern)==>%FileHandle

MKTEMP

File

Returns a unique file name

MKTEMP($Pattern)==>$FileName

MONIKER

Variable Obtains

the

product name.

MONIKER()==>$Name