Skip to Main Content
Linux in a Nutshell, Fourth Edition
book

Linux in a Nutshell, Fourth Edition

by Ellen Siever, Stephen Figgins, Aaron Weber
June 2003
Beginner to intermediate content levelBeginner to intermediate
944 pages
43h 1m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, Fourth Edition

Name

chat

Synopsis

                  chat [options] [script]

System administration command. Set up or initiate dial-up Internet connections; often used in conjunction with pppd, the PPP daemon. On some systems, chat takes the place of the dip program. A chat script is composed of a simple but expressive syntax of paired expect and send strings and sometimes substrings. A script string may contain either text expected from the modem or text to be sent, a chat directive, a substitution character, or a mixture of all three. When reading from a file, lines beginning with # are treated as comments.

Options

-e

Start script with the ECHO directive turned on.

-E

Allow script to read environment variables by using shell $ VARIABLE syntax.

-f file

Read chat script from file instead of standard input.

-r file

Send the output of the REPORT directive to file. By default, they are sent to standard error.

-s

Send all error and log information to standard error, even when using the -v option.

-S

Silent mode; send neither error nor log messages to syslogd.

-t n

Set the default timeout value to n seconds. When not specified, the default timeout value is 45 seconds.

-T string

Set the string to be used instead of the \T substitution character. This is usually a phone number.

-U string

Set the string to be used instead of the \U substitution character. This is usually a second phone number.

-v

Verbose mode; log the chat script state and text sent to and received from the modem to syslogd.

-V

Standard error verbose mode; ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux in a Nutshell, 6th Edition

Linux in a Nutshell, 6th Edition

Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
Linux in Action

Linux in Action

David Clinton
Hands-On System Programming with Linux

Hands-On System Programming with Linux

Kaiwan N. Billimoria, Tigran Aivazian
Embedded Linux for Developers

Embedded Linux for Developers

Alexandru Vaduva, Alex González, Chris Simmonds

Publisher Resources

ISBN: 0596004826