ogin: vstout ssword: catch22
You will probably notice that the expect fields don't contain the whole prompts. This ensures that the login succeeds, even if the remote system transmits Login: instead of login: . If the string you are expecting or sending contains spaces or other white-space characters, you must use quotes to surround the text.
uucico also allows for some sort of conditional execution. Let's say the remote machine's getty needs to be reset before sending a prompt. For this, you can attach a subchat to an expect string, set off by a dash. The subchat is executed only if the main expect fails, i.e., a timeout occurs. One way to use this feature is to send a BREAK if the remote site doesn't display a login prompt. The following example gives a general-purpose chat script that should also work in case you have to press Enter before the login appears. The empty first argument, "" , tells UUCP to not wait for anything, but to continue with the next send string:
"" \n\r\d\r\n\c ogin:-BREAK-ogin: vstout ssword: catch22
A couple of special strings and escape characters can occur in the chat script. The following is a partial list of characters legal in expect strings:
- ""
- \t
- \r
- \s
- \n
- \\
The empty string. It tells uucico to not wait for anything, but to proceed with the next send string immediately.
Tab character.
Carriage return character.
Space character. You need this to embed spaces in a chat string.
Newline character.
Backslash character.
On send strings, the following escape characters and strings are legal in addition to the above:
- EOT
- BREAK
- \c
- \d
- \E
- \e
- \K
- \p
End of transmission character (^D ).
Break character.
Suppress sending of carriage return at end of string.
Delay sending for 1 second.
Enable echo checking. This requires uucico to wait for the echo of everything it writes to be read back from the device before it can continue with the chat. It is primarily useful when used in modem chats (which we will encounter later). Echo checking is off by default.
Disable echo checking.
Same as BREAK .
Pause for fraction of a second.
16.2.6.5. Alternates
Sometimes you want to have multiple entries for a single system, for instance if the system can be reached on different modem lines. With Taylor UUCP, you can do this by defining a so-called alternate .
An alternate entry retains all settings from the main system entry and specifies only those values that should be overridden in the default system entry or added to it. An alternate is offset from the system entry by a line containing the keyword alternate .
To use two phone numbers for pablo , you would modify its sys entry in the following way:
system pablo
phone 123-456
.. entries as above ...
alternate
phone 123-455
When calling pablo , uucico will first dial 123-456, and if this fails, it will try the alternate. The alternate entry retains all settings from the main system entry and overrides the telephone number only.
16.2.6.6. Restricting call times
Taylor UUCP provides a number of ways you may restrict the times when calls can be placed to a remote system. You might do this either because of limitations the remote host places on its services during business hours, or

