eCos Reference Manual
Prev | Chapter 56. CHAT Scripts | Next

# TIMEOUT

The initial timeout value is 45 seconds. To change the timeout value for the next expect string, the following example may be used:

        ""              , "ATZ"         ,
        "OK"            , "ATDT5551212" ,
        "CONNECT"       , "\\c"         ,
        "TIMEOUT"       , "10"          ,
        "ogin:--ogin:"  , "ppp"         ,
        "TIMEOUT"       , "5"           ,
        "assword:"      , "hello2u2"    ,
        0

This will change the timeout to 10 seconds when it expects the login: prompt. The timeout is then changed to 5 seconds when it looks for the password prompt.

The timeout, once changed, remains in effect until it is changed again.

Prev | Home | Next
ABORT Strings | Up | Sending EOT