RSC/MP 7.3 Installation and Configuration Guide

RSC/MP Scripts for Modems and Logons
HP NonStop Remote Server Call (RSC/MP) Installation and Configuration Guide522358-011
D-3
Script Language Commands
Script Language Commands
The following are script language commands, their definitions, and examples.
Counter Command
Set the value of the script counter.
counter { value | operator }
value
Any signed 32 bit value.
operator
Plus sign (+) to increment the value and minus sign (-) to decrement the value.
Disconnectstring Command
Used when a disconnect is not detectable from RS-232 signals (for example, CD or
DTR). If the specified string occurs after a connection has been established, RSC/MP
drops the connection. This command must be used before the script establishes the
connection.
disconnectstring { string }
string
A valid string.
GOTO Command
Go to the specified label.
Goto label
IF [NOT] Command
These examples test for WAIT command timeouts, received string matching, and
counter values:
1. If the last WAIT command timed out, then execute the specified command:
if timeout { command }
2. If the specified string is in the receive buffer, then execute the specified command:
if match { string } { command }
3. If the counter is not the specified value, then execute the specified command:
if not counter { value }{ command }