Hello,
I think the reason why LibreOffice is popping up after you run a
--convert-to command is that you are not using --headless. The flag
--headless hides the LibreOffice GUI, and only performs the operation
specified. Also, it doesn't look like wildcards (the * that you used to
indicate all the files in a directory) work with LibreOffice. I tested
this command in a folder with a bunch of .doc files in it:
soffice --headless --convert-to odt *.doc
It did not produce any output.
However, the following command works correctly, and does not load
LibreOffice afterwords:
soffice --headless --convert-to odt mydocfile.doc
(You would use the "libreoffice" command as it appears you are using
Linux, but because I am using Windows, I have to use "soffice.")
So, since wildcards (at least for me) don't work with LibreOffice, you
would have to create a script (if you wanted some kind of recursive
automation that you mentioned) that looped through the files that you
wanted to convert and ran the --convert-to command separately for each
one. You can also use --outdir to change the output directory.
Here is an AskLO thread that may be useful:
http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/
I hope this helps!
Regards,
xmlhttprequest.open@gmail.com
On 3/4/2014 4:34 PM, Ed_0 wrote:
Hi,
I would like to know, why does libreoffice open up after running in a
terminal "libreoffice --convert-to odt *.doc?
What if I want a recursive behaviour?
Thank you for answering.
Sincerely.
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
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.