exp_continue

term

networkingprogramming

Kept in this browser · My desk

The Expect command that, run inside the body of a matched pattern, makes the same expect start waiting again instead of returning.

It is how Expect loops without a loop: answer a --More-- pager, a progress line or a second login question inside one expect, then keep waiting for the prompt. By default it restarts the timeout timer, so the timeout then means the longest silence between two matches; with -continue_timer the deadline stays where it was, and the timeout bounds the whole exchange. A device that pages forever keeps a plain exp_continue loop alive forever too.

Also known as: exp_continue -continue_timer, continue_timer

← Back to E Back to the glossary