commandline integration with CVS commitinfo

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
hacker_pschorr
Posts: 4
Joined: Wed Nov 21, 2007 8:25 pm

commandline integration with CVS commitinfo

Post by hacker_pschorr »

Hello,

I administer a large system. Users commit files into CVS. I want spreadsheets to be transformed automatically into HTML documents on each commit.

I have the macro, and it works when I invoque it like on the command line:

Code: Select all

# All on one line:
oocalc -invisible -nologo -norestore -nodefault convert_to_html.ods 'macro://convert_to_html/Standard.Module1.ConvertToHTML("file_to_convert.ods")'
However, when this command in invoqued from a CVS commitinfo script, it complains that:

Code: Select all

  openoffice.org2.2.1/program/soffice.bin X11 error: Can't open display:
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)
I get the same problem when I use the -display. In a way, I don't even understand why it would ever want to use the display as everyting proceeds from command line and stays command line.Even inside the macro there is nothing that requires the display.

Maybe I'm not approaching this problem correctly. What is the right approach here? Accessing the GUI to do any of this is not possible. Everything must absolutely be command line as none of the servers have a display, they don't run X, they don't have keyboard nor mouse.

And this is 100% linux, MS Windows is not available here.

Thanks in advance for any advice.
pitonyak
Volunteer
Posts: 186
Joined: Sun Oct 07, 2007 9:13 pm
Location: Columbus, Ohio, USA

Re: commandline integration with CVS commitinfo

Post by pitonyak »

Do you have the same error if you allow OOo to run using the display?

Does the macro use a dispatch? (I think that if it does, then you require the display)
Andrew Pitonyak
http://www.pitonyak.org/oo.php
LO and AOO on Fedora
Post Reply