[expect] using the previous output as input
Date: Thu, 12 Aug 2004 17:58:11 +0000 (UTC)
How can i use the output of the remote program as the input
of an expect send clause?
For example, the remote program responds with:
My name is lampros
(while "lampros" is a totally random name)
I want to send back to the remote program something like:
Hello, lampros and have a nice day.
How can I accomplish that?