William Giddings <
[email protected]> wrote:
Fellow Tclers!
I want to create a ui to communicate with an active Linux shell
application. The application takes input from stdin and outputs to
stdout.
How can I capture the content of stdout and write to stdin such that
the application sends and receives the correct responses?
Read the 'open' manpage, specifically the section about "command
pipelines".
Note that you will most likely want to set line buffering and to make
use of non-blocking event driven I/O to the channel connected to the
shell application.
Alternately, load the 'expect' extension (
https://core.tcl-lang.org/expect/index) and use expects tools to talk
to the shell application.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)