Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. exec expect -f script2
  2.  
  3. exec expect -f script2 <@stdin >@stdout 2>@stderr
  4.  
  5. set mypipe [open |[list expect -f script2] "r+"]
  6. fconfigure $mypipe -buffering none
  7. # Now you can do:
  8. # puts -nonewline $mypipe "abc"
  9. # set charResponse [read $mypipe 1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement