X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=chat%2Fchat.8;h=ddfe6b600df137d6f23e3786fac4da43f4021759;hb=cd9683676618adcee8add2c3cfa3382341b5a1f6;hp=b532292c6f3bfea8be880778ed13f315927f63f6;hpb=71b6b5b21419e5ab151a9bb2da0997bda855fa6c;p=ppp.git diff --git a/chat/chat.8 b/chat/chat.8 index b532292..ddfe6b6 100644 --- a/chat/chat.8 +++ b/chat/chat.8 @@ -50,7 +50,7 @@ keyword. When echoing is enabled, all output from the modem is echoed to \fIstderr\fR. .TP .B \-E -Enables environment variable substituion within chat scripts using the +Enables environment variable substitution within chat scripts using the standard \fI$xxx\fR syntax. .TP .B \-v @@ -77,7 +77,7 @@ SYSLOG. The use of \-S will prevent both log messages from '\-v' and error messages from being sent to the SYSLOG. .TP .B \-T \fI -Pass in an arbitary string, usually a phone number, that will be +Pass in an arbitrary string, usually a phone number, that will be substituted for the \\T substitution metacharacter in a send string. .TP .B \-U \fI @@ -204,7 +204,7 @@ terminal), standard error will normally be redirected to the file .LP \fBSAY\fR strings must be enclosed in single or double quotes. If carriage return and line feed are needed in the string to be output, -you must explicitely add them to your string. +you must explicitly add them to your string. .LP The SAY strings could be used to give progress messages in sections of the script where you want to have 'ECHO OFF' but still let the user @@ -224,14 +224,15 @@ SAY "Waiting up to 2 minutes for connection ... " .br CONNECT '' .br -SAY "Connected, now logging in ...\n" +SAY "Connected, now logging in ...\\n" .br ogin: account .br ssword: pass .br -$ \c -SAY "Logged in OK ...\n" +$ \\c +.br +SAY "Logged in OK ...\\n" \fIetc ...\fR .LP This sequence will only present the SAY strings to the user and all @@ -288,7 +289,7 @@ ABORT 'BUSY' .br ABORT 'NO CARRIER' .br -'' ATZ +\&'' ATZ .br OK\\r\\n ATD1234567 .br @@ -318,7 +319,7 @@ signal behavior. Here is an (simple) example script: .IP ABORT 'BUSY' .br -'' ATZ +\&'' ATZ .br OK\\r\\n ATD1234567 .br @@ -365,7 +366,6 @@ The special reply string of \fIEOT\fR indicates that the chat program should send an EOT character to the remote. This is normally the End-of-file character sequence. A return character is not sent following the EOT. -.PR The EOT sequence may be embedded into the send string using the sequence \fI^D\fR. .SH GENERATING BREAK @@ -374,7 +374,6 @@ to be sent. The break is a special signal on the transmitter. The normal processing on the receiver is to change the transmission rate. It may be used to cycle through the available transmission rates on the remote until you are able to receive a valid login prompt. -.PR The break sequence may be embedded into the send string using the \fI\\K\fR sequence. .SH ESCAPE SEQUENCES @@ -457,7 +456,7 @@ For example, the character DC1 (17) is shown as \^^Q. Environment variables are available within chat scripts, if the \fI\-E\fR option was specified in the command line. The metacharacter \fI$\fR is used to introduce the name of the environment variable to substitute. If the -substition fails, because the requested environment variable is not set, +substitution fails, because the requested environment variable is not set, \fInothing\fR is replaced for the variable. .SH TERMINATION CODES The \fIchat\fR program will terminate with the following completion