Ask Your Question

Headless mode examples for socket and pipe methods. [closed]

asked 2012-02-29 06:00:58 +0100

Harry gravatar image

updated 2015-10-15 05:35:03 +0100

Alex Kemp gravatar image


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,


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-15 05:35:20.446093


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

qubit gravatar imagequbit ( 2013-01-20 21:35:28 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-02-29 09:38:19 +0100

vmiklos gravatar image

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.


edit flag offensive delete link more

Question Tools



Asked: 2012-02-29 06:00:58 +0100

Seen: 5,261 times

Last updated: Feb 29 '12