HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
p
ppp.Systems(4) ppp.Systems(4)
ignored, but must be present as a place-holder.
phone number
The value to replace the \T escape sequence in the dialer script. If the device field names an
entry in /dev, the phone number field is optional. If the device field is ‘tcp...’ or ‘telnet...’, the
phone number field is ignored if present, but must be present as a placeholder.
chat script
A description of the conversation that pppd holds with the remote machine.
Chat Script Particulars
A chat script takes the form of a word to expect the remote end to send, followed by a word to send in
response. Unless a ‘send’ string ends with \c, pppd will follow it by sending a carriage return character
(ASCII 0x0d).
Chat scripts are ‘expect send expect send ...’ or ‘expect-send-expect send ...’, where the send following the
hyphen is executed if the preceding expect fails to match received text.
Certain special words may be used in chat script ‘send’ strings to control the behavior of pppd as it
attempts to dial. Both ABORT and TIMEOUT must be in the ‘expect’ phase of the chat script.
ABORT abort-string If pppd sees abort-string while executing the remainder of the chat script,
abort the dialing attempt and note the failure in the log file.
TIMEOUT timeout-time While executing the current chat script, wait timeout-time seconds for an
expected response before regarding the dialing attempt as having failed.
Writes have a fixed 60-second timeout.
The expect-send couplet of ’"’ P_WORD sets the line parity accordingly:
P_AUTO Set transmission parity based on the parity observed in characters received in ‘expect’
strings. This is the default.
P_ZERO Transmit characters with the parity bit set to zero (8 bits, no parity).
P_ONE Transmit characters with the parity bit set to one.
P_EVEN Transmit characters with even parity.
P_ODD Transmit characters with odd parity.
The backquote character (‘) surrounds the name of a program that is to be run before proceeding. If the
program is run in the ‘send’ phase of a chat script couplet, its standard output will be sent to the peer when
the program exits. Chat script processing continues when the program exits.
In the midst of either an ‘expect’ string or a ‘send’ string, ˆx gets translated into the appropriate control
character, and
\x gets translated into x. Other special sequences are:
\s Send or receive a space character (ASCII 0x20).
\t Send or receive a horizontal tab character (ASCII 0x09).
\n Send or receive a line feed character (ASCII 0x0a).
\r Send or receive a carriage return character (ASCII 0x0d).
\\ Send or receive a backslash character (ASCII 0x5c).
\ˆ Send or receive a carat character (ASCII 0x5e).
^character Send or receive the single character Ctrl-character (ASCII 0x00 through 0x1f).
\ddd Send or receive a character, specified in octal digits.
\p Pause for .25 second before proceeding (send only).
\d Delay for two seconds before proceeding (send only).
\K Send a break (.25 second of zero bits).
\M Disable hangups (sets CLOCAL or LNOHANG).
\m enable hangups (unsets CLOCAL or LNOHANG) (the default).
\c Don’t append a carriage return character after sending the preceding string (send only).
HP-UX Release 11i: December 2000 − 2 − Section 4−−225
___
___