summaryrefslogtreecommitdiff
path: root/chat/chat.8
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1999-09-06 05:10:23 +0000
committerPaul Mackerras <paulus@samba.org>1999-09-06 05:10:23 +0000
commiteaca954c2d4a4336c955f4a973ae85dd68d99862 (patch)
treef050d0a8a0be43e0e315983b01a7f681ed065a59 /chat/chat.8
parent10a68fd183c5e16e95fce56e7b292f1436b1e714 (diff)
downloadppp-eaca954c2d4a4336c955f4a973ae85dd68d99862.tar.gz
add -E option to use environment variables, from Andreas Arens
Diffstat (limited to 'chat/chat.8')
-rw-r--r--chat/chat.822
1 files changed, 20 insertions, 2 deletions
diff --git a/chat/chat.8 b/chat/chat.8
index 7d4ad5f..8c031f5 100644
--- a/chat/chat.8
+++ b/chat/chat.8
@@ -1,12 +1,12 @@
.\" -*- nroff -*-
.\" manual page [] for chat 1.8
-.\" $Id: chat.8,v 1.8 1999/05/12 06:13:22 paulus Exp $
+.\" $Id: chat.8,v 1.9 1999/09/06 05:10:23 paulus Exp $
.\" SH section heading
.\" SS subsection heading
.\" LP paragraph
.\" IP indented paragraph
.\" TP hanging label
-.TH CHAT 8 "27 Sep 1997" "Chat Version 1.17"
+.TH CHAT 8 "22 May 1999" "Chat Version 1.22"
.SH NAME
chat \- Automated conversational script with a modem
.SH SYNOPSIS
@@ -49,6 +49,10 @@ or off at specific points in the chat script by using the \fIECHO\fR
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
+standard \fI$xxx\fR syntax.
+.TP
.B -v
Request that the \fIchat\fR script be executed in a verbose mode. The
\fIchat\fR program will then log the execution state of the chat
@@ -429,6 +433,14 @@ sequence 'HI TIM' and HI\\sTIM are the same.
.B \\\\t
Send or expect a tab character.
.TP
+.B \\\\T
+Send the phone number string as specified with the \fI-T\fR option
+.I (not valid in expect.)
+.TP
+.B \\\\U
+Send the phone number 2 string as specified with the \fI-U\fR option
+.I (not valid in expect.)
+.TP
.B \\\\\\\\
Send or expect a backslash character.
.TP
@@ -441,6 +453,12 @@ character.
Substitute the sequence with the control character represented by C.
For example, the character DC1 (17) is shown as \^^Q.
.I (some characters are not valid in expect.)
+.SH ENVIRONMENT VARIABLES
+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,
+\fInothing\fR is replaced for the variable.
.SH TERMINATION CODES
The \fIchat\fR program will terminate with the following completion
codes.