Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   chat    ( 8 )

автоматизированный разговорный скрипт с модемом (Automated conversational script with a modem)

ECHO

The echo options controls whether the output from the modem is
       echoed to stderr. This option may be set with the -e option, but
       it can also be controlled by the ECHO keyword. The "expect-send"
       pair ECHO ON enables echoing, and ECHO OFF disables it. With this
       keyword you can select which parts of the conversation should be
       visible. For instance, with the following script:

ABORT 'BUSY' ABORT 'NO CARRIER' '' ATZ OK\r\n ATD1234567 \r\n \c ECHO ON CONNECT \c ogin: account

all output resulting from modem configuration and dialing is not visible, but starting with the CONNECT (or BUSY) message, everything will be echoed.