I am also trying to run Open Office in headless mode. I am trying to spawn an soffice process from our Java app server to invoke an OpenOffice Basic macro in an invocation very similar to yours. The process either hangs or exits immediately without running the macro.
I followed one set of instructions to run the Xvfb test X server on a dummy display value. OpenOffice launches without any windows as expected but will not invoke the marco and seems to hang but may be just sitting idle. If OpenOffice is launched without a macro parameter and backgrounded then invoke again with the macro parameter it works. I'm not sure which Xvfb version I downloaded but I did have to download an updated version of the cairo 2D graphics library used by OpenOffice. The older cairo library was not happy with Xvfb. The Xvfb invocation looks like this (the ":9" is the bogus DISPLAY value): Xvfb -pixdepths 24 -co /usr/share/X11/rgb.txt -fp /usr/share/X11/fonts/misc:/usr/share/X11/fonts/75dpi:/usr/share/X11/fonts/100dpi :9 I am running OO v2.3.1 because it is supposed to be the first release that can run headless but the last release that does not force a startup licensing screen. BTW - This is all running on a Linux Fedora Core 7 desktop system. Did you make any progress getting this working? Thanks, Ken Craig Johnson-6 wrote: > > > I'm trying to run soffice in a cron job script where it executes in > -headless mode... > > e.g. > > soffice -headless macro://document/lib.module.macro > file:///path/to/document > > ... but it dies with an error... > > Error : staroffice,v8.9 does not run without Openwindows > > If I set a valid DISPLAY var within the shell running the cron job it will > work. > > Why does it need a valid DISPLAY var set if it's running in -headless > mode? > > Is there something I can do in the shell script which runs the soffice > command to setup a valid DISPLAY var? I cannot just give it a made up > DISPLAY value unless I know that something is running for that DISPLAY. > > Thanks, > Craig > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/soffice--headless-tp19789500p20342417.html Sent from the openoffice - api dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
