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

Hi,

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

Thank you!

Kind regards,

Ed


-- 
To unsubscribe e-mail to: users+unsubscr...@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

Reply via email to