Ross Johnson wrote:

Patrice Seyed wrote:

thanks for the link, but has anyone done before what I am trying to do with 2.0, i.e. can i get a little more of a lead-in / pointer. Thank you, Patrice


I haven't used OOo this way before but, if it helps, I checked the command line arguments in OOo 2.0.2 Help and they appear valid. As referred in that Help section, I then looked in the 2.0 dev guide (http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtml) Section 3.3.1 "UNO Interprocess Connections", under "Starting OpenOffice.org in Listening Mode", and again confirmed that nothing appears to have changed. There is a note at the end of that sub-section re versions prior to OOo 1.1.0 though, which should not apply here as you said you've been running 1.1.x.

On Linux (Fedora Core 3) I ran the following command line:

/opt/openoffice.org2.0/program/soffice "-accept=socket,host=localhost,port=2002;urp;" -headless

I then see:
netstat -a | grep 2002
tcp 0 0 desk.home:2002 *:* LISTEN

Also, "telnet localhost 2002" does not return an error and remains "connected" until I escape from it by typing Ctrl+]. So I assume that soffice is listening and accepting connections. If I type very short random lines of text the connection stays up, but if I type some long random line, I get a "Connection closed by foreign host" message. I then have to kill both the soffice and soffice.bin processes. This again suggests that OOo is accepting connections.

If I have an already running instance of OOo, the command line above returns immediately but appears to switch the running instance into listening mode.

This will seem obvious but, one more possibility that I found just a few minutes ago when trying the above as a new user - make sure that the account (root?) under which you are starting OOo 2.0 in this mode has also run OOo 2.0 normally at some point previously, so that the user config directory tree has been initialised. It should be evident that this has not been done because the commandline above will return after a short while. However, it might easily be missed when backgrounding and daemonising the process using command line that you quoted eariler:

daemon /opt/openoffice.org2.0/program/soffice "-accept=socket,host=localhost,port=8100;urp" -display :1 &

And something I didn't expect - running with the "-headless" option still requires a connection to an X server (display).

Ross

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to