I am working on an interface for a shell-like program on linux (let's call the main program AA for now). AA is kind of like a compiler/interpreter and the user can interactively work with it via a unix shell and entering the AA commands.
My GUI which works under X-windows is supposed to communicate with AA. It should be able to run AA and pass the commands of the user to AA.
My question is how exactly this communication can be done. I believe the interface needs to create some kind of a virtual shell and call AA in that shell and send and receive streams of text/data that way. Is there any way to do it? I am not even sure where to start. Or is there anotehr way to do this?