The
-w option specifies that a special connect sequence is required, and that
a script for this sequence can be found in the
"chatfile." This file consists of lines that contains pattern receive and send pairs,
separated by blanks. The patterns may be enclosed in quotes.
The script is currently only available for the "telnet" protocol.
A typical invocation line would be:
newsx -w chat.acme acme login.acme.net telnet
The file chat.acme could look like this:
# login for acme.net NNTP
login: myusername
Password: mypassword
$ "exec telnet news.acme.net nntp"
ECHO
The script will have to be adapted for local conditions, of course.
The special tag
ECHO
specifies that line echo should be suppressed, required since the host
telnet operates in line mode.
Since this file usually contains passwords and other sensitive information,
ensure that read access to it is limited.