Bug 89744 - Running CLI command on all files in directory doesn't work
Summary: Running CLI command on all files in directory doesn't work
Status: RESOLVED DUPLICATE of bug 68647
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.1.2 release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-28 19:32 UTC by Mikeyy - L10n HR
Modified: 2015-07-31 11:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikeyy - L10n HR 2015-02-28 19:32:07 UTC
Try running this command from command line interface (CLI) on windows:
soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":"59,ANSI,1" *.ods

It will not work.

If you type in exact file, like:
soffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":"59,ANSI,1" test.ods

It will work.

If you check almost non expistent documentation for CLI:
https://help.libreoffice.org/Common/Starting_the_Software_With_Parameters

You will notice it should support *.ods and similliar commands.
Comment 1 raal 2015-03-04 08:48:52 UTC
I can confirm with Version: 4.5.0.0.alpha0+
Build ID: f09efe39da1a2a1cf89b718bc07ed75e0da1b602
TinderBox: Win-x86@42, Branch:master, Time: 2015-02-23_22:57:28
Comment 2 Mishy 2015-03-05 09:37:48 UTC
More probably, this BUG exist on Linux as well.
However I am facing to a more serious probelm.
Giving the full filename to the source file (even if renamed to "a.docx", no space, no special characters) does not help.

"libreoffice --help"
can list all known options, but the "--convert-to pdf" will result NO output.
Even no error message!
I also tested the "--ptint-to-file" and the "--cat" option, with no results!
However ie: "--calc" and "--writer" options are working from command-line.

System : Ubuntu 14.04.2 LTS
Version: LibreOffice 4.4.1.2 40m0(Build:2)
Comment 3 Mikeyy - L10n HR 2015-03-05 18:24:21 UTC
I'm facing same problem on windows and not really sure why.
On my work win 8.1 computer, LO 4.4.1.2 I made batch file which uses this command successfuly.
Transfered same batch file on another win 7 computer, with same LO version and it's not working. Everything goes as expected, no error, it just doesn't create csv file.
Comment 4 Maxim Monastirsky 2015-07-31 11:14:34 UTC

*** This bug has been marked as a duplicate of bug 68647 ***