Lantronix SecureLinx SLC8 User Manual page 108

Securelinx console manager (slc)
Hide thumbs Also See for SecureLinx SLC8:
Table of Contents

Advertisement

Find and return the index of the last occurrence of 'str_needle' in
'str_haystack'
string length <str>
Return the length of 'str'
string index <str> <int>
Return the character located at position 'int' in 'str'
string range <str> <int start> <int end>
Return a string consisting of the characters in 'str' between 'int
start' and 'int end'
string tolower <str>
Convert <str> to lowercase
string toupper <str>
Convert <str> to uppercase
string trim <str 1> <str 2>
Trim 'str 2' from 'str 1'
string trimleft <str 1> <str 2>
Trim 'str 2' from the beginning of 'str 1'
string trimright <str 1> <str 2>
Trim 'str 2' from the end of 'str 1'</
In each of the above operations, each <str *> element can either be a quoted string or a variable
reference. The <int *> elements will be either words or variable references.
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.
SecureLinx SLC User Guide
8: Devices
108

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SecureLinx SLC8 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Securelinx slc48Securelinx slc16Securelinx slc32

Table of Contents