
redirecting stdin of a Expectk script to a spawned process
Hi there,
I am very new in Expect/k. I tried to automate a program which takes
stdin and have user interaction thru /dev/tty and outputs to stdout
with Expect/k which I assume it can take the job.
Diagrammatically,
stdin -------> Program A -------> stdout
^
| user interaction
/dev/tty -------
is wrapped by the Expect/k script to make sth like
stdin -------> Expect/k script to -------> stdout
automate the user
interaction
Can it be done and how? I tried but I can't redirect the stdin of the
script to the program A, program A waits there indefinitely....
Email is most welcome.
Thanks.
Andrew