User guide
set script
Chapter 2 Command Descriptions 189
Command Description Example
Anp Sets the following:
• Character size to n, which can be either 7 or 8 bits.
•Parity to p, which can be one of the following values: 0=no
parity, 1=odd 2=even 3=mark
s1=”A70”
Bn Transmits a break signal n milliseconds long. If n is not specified,
the length is 250 milliseconds.
s7=”B100”
Cn Sets carrier loss detection. If n is:
• 0: carrier loss is not detected.
• 1: the modem hangs up if the port loses DCD.
S2=”C1”
D+m Raises a modem signal. If m is:
• 1: DTR is raised.
• 2: RTS is raised.
D-m Lowers a modem signal. If m is:
• 1: DTR is dropped.
• 2: RTS is dropped.
E{string} Writes the string either to:
• A user terminal, if running interactively.
• To a trace buffer, if running in the background.
This string can include any of the escape commands listed in
“Script Escape Commands”, which follows this discussion.
S10=”E{Please Log In}”
Fn Pauses for n seconds and flushes input data. The default is 0. s1=”F10”
Gs Immediately does one of the following, depending on the value of s.
If s is:
• The number of a stanza: Control is passed to that stanza.
• + (plus): The script is exited with a success message from the
E string.
• - (minus): The script is exited with a failure message from the E
string.
s2=”G7”
Hs Sets the carrier-lost (hang-up) recovery to stanza s, which is the
number identifying another stanza or one of the following:
• + (plus): Exit, indicating success.
• - (minus): Exit, indicating a general failure.
• * (star): Indicate that the remote system is busy.
• = (equal): Indicate that the remote system is down.
s2=”H+”
M{string}Writes string to a modem.
This string can include any of the escape commands listed in
"Script Escape Sequences" on page 191.
s2=”M{at&f\c}”
Nb Changes the baud rate. The range is 50 to 115,200. Rates under
110 bps should be used only on expansion ports.
s4=”N19200”
Pn Pauses for
n seconds. If you do not specify a value for n, the default
is 1 second.
s5=”P2”