Expect: interact with a pipeline

  • Follow


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=E9bastien
0
Reply sebastien10 (1) 11/18/2009 3:56:51 PM


0 Replies
161 Views

(page loaded in 0.024 seconds)

Similiar Articles:













7/16/2012 4:35:41 AM


Reply: