Using chat in scripts and chat out scripts

The properties file and command line options use short scripts to control the logging in to and out of the target system.

Chat in and chat out scripts form a single line in the expect-send format (for chat in scripts) or send-expect format (for chat out scripts). The format is:
ChatinString : <expect> <send> <expect> <send> ...
ChatoutString : <send> <expect> <send> <expect> 
Note: The elements in the chat strings are separated by white space. In order to send or expect a sequence that includes white space, surround the sequence with double quotes.

A typical chat in script might be:

".*login.*: .*anu\r\n .*assword.*: .*anu\r\n"