Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index

On 04/03/14 19:56, null wrote:
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:

I hope this helps!


On 3/4/2014 4:34 PM, Ed_0 wrote:

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.



Just tried "libreoffice --headless --convert-to odt *.doc* and it worked
like a charm.

Thank you!

Kind regards,


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


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.