Sidebar: Defining the chat Script
To define the chat script, you need the uucp login
name and
password you will use to access the remote system. You
can then use
the cu command to contact the remote system to find
out what
you must define for the script. A sample session would
look like
chare@unilabs> cu -l
tty21 Connected
<send NEWLINE>
login: nuucp
Welcome to Unilabs Research
Shere=bugs
~.
So, a chat script for the system bugs, which is
directly connected to the local system, would be described
this way:
expect nothing
send newline
expect login:
send nuucp
This translates into a chat script that looks like
"" \r\c login: nuucp
The pair of double quotes means "expect nothing";
\r\c is "send newline." These are two of a
number of
special characters used in chat scripts, which are listed
in Table 1.
|