Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Expect: interact with a pipeline

0 views
Skip to first unread message

Sébastien Mazy

unread,
Nov 18, 2009, 10:56:51 AM11/18/09
to
Hello,


I'm struggling with the following chunk of code:

# pipeline_interact.exp
set channel [open {|tee out.log} RDWR]
fconfigure $channel -buffering none
spawn -noecho -open $channel
interact

which I expect to work like:

# normal_interact.exp
spawn -noecho tee out.log
interact

Instead, out.log remains empty whatever I type (including carriage
return), and nothing is echoed back. "expect" and "send" work in both
cases though.

Could anybody please shed some light on what I did wrong?


Sébastien

0 new messages