chat(8): document the TIMEOUT directive

Gbp-Pq: Name chat_man
This commit is contained in:
Ubuntu Developers 2022-05-14 02:43:52 +08:00 committed by openKylinBot
parent 39d9577c2c
commit 7b27beb1f6
1 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ Set the timeout for the expected string to be received. If the string
is not received within the time limit then the reply string is not
sent. An alternate reply may be sent or the script will fail if there
is no alternate reply string. A failed script will cause the
\fIchat\fR program to terminate with a non-zero error code.
\fIchat\fR program to terminate with a non-zero error code. You can
also use the TIMEOUT string in order to specify the timeout.
.TP
.B \-r \fI<report file>
Set the file for output of the report strings. If you use the keyword
@ -349,7 +350,7 @@ ogin:\-\-BREAK\-\-ogin: real_account
.LP
.SH TIMEOUT
The initial timeout value is 45 seconds. This may be changed using the \fB\-t\fR
parameter.
parameter. You can also specify "TIMEOUT 0".
.LP
To change the timeout value for the next expect string, the following
example may be used: