Name

overlay

overlay [-# spawn_id...] program [args]

Execute program program and optional arguments in place of the current Expect program. Spawn IDs can be mapped to file identifiers for the new process by specifying file number and spawn ID pairs.

Example
overlay −0 $spawn_id −1 $spawn_id −2 $spawn_id emacs

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.