Hi,
Request:
In RedHat7, I want to get the path of all opened spreadsheet documents with Java.
What I've done:
1. I used Runtime.exec(cmd...) with Java code, the 'cmd' was defined with "ps -ef | grep xxx"
->if only one spreadsheet document opened, the returned info list the correct document, I can parse
it and get the file path
->but if multi spreadsheet documents opened, the returned process still only list the first
document, I cannot get other documents.
2. I also test in bash, it seems "ps -ef" cannot list all files.
So , I want to know is there any other way to do it. such as using UNO service with libreoffice API
to get it.
Anyone who knows it is much appreciate.
Best Regards
William
Context
- Q: How to get the path of all opened spreadsheet documents · Zhang, William
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.