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-2
Comments
Comments
The semicolon (;) serves as a comment delimiter, except when it appears inside a
quoted string. Text following the semicolon, through the end of the line, is disregarded
by the script interpreter.
Conditional Testing
The IF command controls the execution of the script based on timer expiration,
received string matching, and counter value.
Counting
The script language provides a single counter that can be used to control script
execution. The counter can be set to a specific value, incremented, or decremented.
The IF command can be used to test the value of the counter and execute a command,
based on the value of the counter.
Parameter Substitution
The script interpreter can substitute user-defined tags read from the [RESOLVER]
section of the configuration file PIPE.INI. Use this feature for information that applies to
a particular remote node, such as its telephone number, so that a single script can
reach many remote nodes. To use the user-defined tag in a script, enclose its name in
parentheses and precede the expression with the dollar sign ($). The following line
dials a telephone number:
send "atdt $(phonenbr)\r"
Sending and Receiving Data
The SEND and WAIT commands write data to and receive data from the attached
device. The SEND command writes a specified string to the device. Any ASCII
character may be sent.