commandline integration with CVS commitinfo

Java, C++, C#, Delphi, ??? - Using the UNO bridges

commandline integration with CVS commitinfo

Postby hacker_pschorr » Wed Nov 21, 2007 8:55 pm


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   Expand viewCollapse view
# 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   Expand viewCollapse view
  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.
Posts: 4
Joined: Wed Nov 21, 2007 8:25 pm

Re: commandline integration with CVS commitinfo

Postby pitonyak » Sat Dec 01, 2007 4:16 pm

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
LO and AOO on Fedora
Posts: 186
Joined: Sun Oct 07, 2007 9:13 pm
Location: Columbus, Ohio, USA

Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests