 | OO-Snippets: Start UNO Acceptor using an ooRexx scriptCommons| Keywords | start, uno, acceptor, ooRexx, script |
|---|
| Language | ooRexx |
|---|
| Application | Office |
|---|
| Authors | Josef Frysak (initial)
|
|---|
| Supported Versions | 2.4.1 |
|---|
| Supported OS | Linux Win32 |
|---|
| Question | How to start an Acceptor of Open Office using an ooRexx script?
|
|---|
| Answer | First find out which operating system is used and where Open Office has been installed to. Then call soffice executable with "-accept" parameter to start an acceptor. For further details see http://wi.wu-wien.ac.at/rgf/diplomarbeiten/BakkStuff/2008/200809_Frysak/200809_Frysak_Automating_OOo_ooRexx_Nutshells.pdf. |
|---|
if .uno~path.separator=";" then
do
add = 'start C:\Programme\"OpenOffice.org 2.4"\program\'
ADDRESS CMD
end
else
do
shell=value("SHELL",,"ENVIRONMENT")
shell=substr(shell, shell~lastpos("/")+1)
ADDRESS VALUE shell
add = ''
end
command = add || 'soffice "-accept=socket,host=localhost,port=2002;urp;" -quickstart'
command
call SysSleep 2;
::requires UNO.CLS
|
Changelog| Date | User | Modification |
|---|
| 2008-10-12 | 1 | Initial version |
|