On 07/10/10 23:07, John Porter Simons wrote:
I'm trying to spawn an OpenOffice subprocess from Python. Rather than
running "soffice" which then runs "soffice.bin" I'm trying to run
"soffice.bin" directly, so I have a convenient handle on its PID.

Note that this is not supported and will generally not work. The soffice script around soffice.bin is there for a reason (various reasons, actually).

This works from the terminal:
/usr/lib/openoffice/program/soffice.bin -headless
-accept="socket,port=8100;urp;"

It runs and waits patiently for connections. However when I do the same
thing with Python's subprocess.Popen(), it returns immediately with code 77.

Anyone know what code 77 is? I tried grepping through the source but 77
occurs a whole bunch of times. Anybody know where the error codes are
enumerated?

That is E_FATAL_ERROR, defined in desktop/source/inc/exithelper.hxx and used in desktop/source/app/app.cxx.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to