On 25 Mar 2003, Lars Gullik Bj�nnes wrote:

> I wan thinking of an idea where the LyXServer only was able to talk
> with sockets. And then have a LyXPipeProxy that creates pipes and
> communicates with this socket.

The interface to the socket could be done entirely by lyxclient, which
could send commands to lyx taken from the command line:

   lyxclient -c <some lyx command>

or from stdin:

   cat commands.txt | lyxclient

or by execing some program that will communicate with lyx by its standard
input and output:

   lyxclient -e commander.exe

(lyxclient would close stdin and stdout, duplicate twice the file
descriptor associated to the socket, then exec commander.exe)

or finally serving as a proxy to pipes:

   lyxclient -p /tmp/lyxpipe &
   echo <some lyx command> > /tmp/lyxpipe.in
   cat /tmp/lyxpipe.out



Jo�o.

Reply via email to