[Solved] Running and terminating multiple Writer instances

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

[Solved] Running and terminating multiple Writer instances

Post by _savage »

Hello,

I need to re-open a question from a few years ago; see the Terminating an office instance cleanly thread.

It seems to me that spawning multiple Writer instances as individual processes (using Python’s subprocess) and then shutting one process down kills the other as well. What vital resources are being shared here, and what is the recommended way of spawning multiple Writers (i.e. opening multiple documents) simultaneously?

I spawn an instance like so:

Code: Select all

/…/soffice --accept="pipe,name=office-lRI55bb7ceed993f-HtKxO436s;urp;StarOffice.ServiceManager" --headless --invisible
and currently don't use the

Code: Select all

-env:UserInstallation=file://…
command-line argument.

Thanks!
Last edited by _savage on Sat Nov 11, 2017 4:47 am, edited 2 times in total.
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
_savage
Posts: 187
Joined: Sun Apr 21, 2013 12:55 am

Re: Running and terminating multiple Writer instances

Post by _savage »

Extensive email discussion in the thread How to run multiple instances of Writer simultaneously? at the Document Foundation’s email list archive.
Mac 10.14 using LO 7.2.0.2, Gentoo Linux using LO 7.2.3.2 headless.
Post Reply