stuart macgregor wrote:

> I have tried talking to the server using shell echo and cat commands
> in different terminal windows.
> 
> Lyx just seems to parrot the commands e.g.
> 
> echo "LYXCMD:sampleclient:hello" >.lyxpipe.in
> 
> gets
> 
>    INFO:sampleclient:hello:
> 
> (from cat .lyxpipe.out) and
> 
> echo "LYXCMD:sampleclient:get-xy:" >.lyxpipe.in
> 
> gets
> 
> INFO:sampleclient:get-xy:
> 
> Is there some Lyx setup command or build option I have missed?

Console 1:
$ echo "LYXSRV:angus:hello" > ~/.lyx-1.3.x/server.in

Console 2:
$ tail -f ~/.lyx-1.3.x/server.out
LYXSRV:angus:hello

Thereafter, it appears that I must restart 'tail' if I am to read any 
further output from LyX. The peculiarities of pipes.

Console 1:
$ echo "LYXCMD:angus:server-get-xy" > ~/.lyx-1.3.x/server.in

Console 2:
$ tail -f ~/.lyx-1.3.x/server.out
INFO:angus:server-get-xy:56 186

So, works for me, although compiling server_monitor.c and using that 
is easier IMO.

-- 
Angus

Reply via email to