Headless mode examples for socket and pipe methods.

Hello.

For LO 3.4/3.5, I want to run LO in --headless mode and try out both the socket (listening on an arbitrary port) and pipe methods.

However, what is not clear to me is this…

  1. With the socket method: if I specify an arbitrary port (instead of the default 2002) in the --accept argument, how does the the connecting client (a shell script) know about this port (meaning, where/how do I specify it in the client)?

  2. With the pipe method: Do I have to create the pipe myself (using mkfifo) before passing its name to the --accept argument, or will LO automatically create the pipe for me? Further, how do I tell the connecting client (a shell script) about the name of this pipe?

Would greatly appreciate if you could give an example invocation for listening and connecting, and for socket and pipe methods.

Many thanks in advance,

/HS

@Harry1, Did @vmiklos answer your question for you? If so, please mark his answer as correct. Thanks!

Regarding the socket method, the client application should have a switch / config parameter for that. (unoconv has a -c switch for that)

In the past I also had it working with jodconverter (before we had the --convert-to switch), then the working commandline for me was:

./soffice.bin -headless -accept=“socket,port=8100;urp;” -nologo

Probably the same (except you need --foo instead of -foo these days) still works.

HTH.