LYXCLIENT(1) | lyxclient 2.3.7 | LYXCLIENT(1) |
lyxclient - send commands to a running LyX editor
lyxclient [ options ]
When LyX starts, it creates a unique, per-process local socket in the temporary directory through which commands can be sent. That is, it can act like a server, accepting connections from clients. lyxclient can be used as such client. lyxclient will take care of all connection and communication protocol details, leaving you (or your app) free to concentrate on what you want to send to LyX.
lyxclient must first identify to which server (i.e. a running LyX) commands are to be sent. The following options are used to specify the server.
If neither -a nor -p are invoked, lyxclient will search for sockets in /tmp (or tmp_dir if the -t option is used) and use the first socket to which it can connect. This is safe if you are running only one LyX process at any one time.
lyxclient can send commands to LyX from both the command-line and from standard input. LyX commands documentation can be found in LyX Help menu.
If neither -c nor -g are used, lyxclient will regard any standard input as commands to be sent to LyX, printing LyX's responses to standard output. Commands are separated by newlines (the '\n' character). To finish communication and terminate the lyxclient process, send the command 'BYE:'.
João Luis M. Assirati <assirati@fma.if.usp.br> is the principal author of lyxclient.
2023-01-01 | Version 2.3.7 |