Per Jessen wrote:

> Mike Scott wrote:
> 
>> Per Jessen wrote:
>>> I'm running soffice on a virtual frame buffer (Xvfb) to run a macro
>>> producing a PDF based on .sxw input.  Does anyone happen to know if
>>> I
>>> can run multiple soffice concurrently?  I.e. can multiple
>>> soffice "share" the Xvfb ?
>>> 
>>>
>> Silly question, but why involve X at all? The following culled from
>> one of my scripts runs without a display:
>> 
>> exec /usr/local/bin/openoffice.org-2.3.0-swriter -headless  \
>> "macro:///Standard.conversions.SaveAsPDF(\"$1\", \"$2\")"
> 
> Not silly at all - I'm pretty certain I tried with -headless and
> somehow couldn't get it to work.  Maybe I'll have to have another go.
> 

I have just tried it, and it does work fine with -headless - the one odd
thing is that it takes about twice as long ??
With '-invisible -display :1.0', a conversion takes 10-11 seconds,
with '-headless' it takes 20 seconds.  (oldish 550MHz machine).

Whilst I've got your attention - how do you cope with soffice detaching
itself at startup?  I've got a kludgy work-around where I run soffice,
then a while-loop waiting for the pdf file to appear.  Is there a way
of preventing the detach?


cheers
Per


-- 
/Per Jessen, Zürich


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to