Name

expect_after

expect_after options

Accept the same options as the expect command, but return immediately. Patterns and actions are implicitly added to the next expect command having the same spawn ID. Matching patterns are executed after those in the expect command, in the same context.

Expect tests expect_before patterns first, expect patterns next, and expect_after last. The first successful match gets its action executed. Patterns are tested in the order listed.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.