RSC/MP 7.3 Installation and Configuration Guide

HP NonStop Remote Server Call (RSC/MP) Installation and Configuration Guide522358-011
D-1
D
RSC/MP Scripts for Modems and
Logons
This appendix provides a script language reference and sample scripts for modems.
Script Language Reference
The script language provides a flexible means of controlling an attached device such
as a smart modem during call answer and origination. The script controls the
transmission and reception of control strings to the attached device. The language
provides for conditional and unconditional testing, branching, and rudimentary loop
counting.
Character Set
The script language allows the script to send any ASCII character, or test for the
reception of any ASCII character, from the attached device. Strings that are sent and
received are enclosed in double quotes. Control characters and non-printable
characters may be specified in send and receive strings using the supported subset of
C language type escape sequences:
\r Carriage return
\n New line
\" Double quote
\\ Backslash
\xddd ASCII character in hexadecimal notation (ddd must be in range 000 through
0FF)
The following are examples of valid send and receive strings:
"
at&\r
"
"
OK\r\n
"
Branching
The script language provides for branching using the GOTO command. Script
execution continues at the first statement after the label specified in the GOTO
command.