expect: redirect output to a pipe

Brian Fitzgerald fitz at rpi.edu
Sun Feb 10 08:14:25 AEST 1991


In an "expect" script, can I

...  interact with a spawned process until I type an escape character

...  then redirect the process' output to a PIPE until the process
sends a prompt string

...  then interact with the process again?

(pty answers are welcome, but can this be done with just "expect"?)

Brian Fitzgerald



More information about the Comp.unix.questions mailing list