автоматизированный разговорный скрипт с модемом (Automated conversational script with a modem)
Комментарии (Comments)
Comments can be embedded in the chat script. A comment is a line
which starts with the #
(hash) character in column 1. Such
comment lines are just ignored by the chat program. If a '#'
character is to be expected as the first character of the expect
sequence, you should quote the expect string. If you want to
wait for a prompt that starts with a # (hash) character, you
would have to write something like this:
# Now wait for the prompt and send logout string
'# ' logout