commandline integration with CVS commitinfo
Posted: Wed Nov 21, 2007 8:55 pm
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:
However, when this command in invoqued from a CVS commitinfo script, it complains that:
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.
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")'
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)
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.