source: gs2-extensions/open-office/trunk/START-UP.sh@ 22204

Last change on this file since 22204 was 22204, checked in by davidb, 12 years ago

Initial pass at extension that uses OpenOffice to convert documents to HTML or PDF, for subsequent processing by Greenstone

File size: 414 bytes
Line 
1#!/bin/bash
2
3which soffice >/dev/null 2>&1
4if [ $? = 0 ] ; then
5
6 echo "Starting up Open Office Server (headless mode)"
7
8 soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless
9
10 echo "Testing to see if soffice is listening on port 8100"
11
12 netstat -an | grep 8100
13else
14 echo ""
15 echo "Error: Unable to find 'soffice' on PATH environment variable"
16 echo ""
17fi
18
19
20
Note: See TracBrowser for help on using the repository browser.