Ask Your Question
2

Headless mode examples for socket and pipe methods.

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

Harry gravatar image Harry
23 2 3 7

updated 2013-03-13 04:47:48 +0200

qubit gravatar image qubit flag of United States
5721 3 48 41

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

delete close flag offensive retag edit

Comments

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

qubit ( 2013-01-20 21:35:28 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

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

vmiklos gravatar image vmiklos
391 4 10

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.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
2 followers

subscribe to rss feed

Stats

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

Seen: 1,208 times

Last updated: Feb 29 '12