Hi
If I do:
soffice --headless --convert-to xlsx /home/me/sheets.ods --outdir
/home/me/tmp
from the command line everything works fine:
func=xmlSecCheckVersionExt:file=xmlsec.c:line=188:obj=unknown:subj=unknown:error=19:invalid
version:mode=abi compatible;expected minor version=2;real minor
version=2;expected subminor version=25;real subminor version=26
convert /home/me/sheets.ods -> /home/me/tmp/sheets.xlsx using filter : Calc
Office Open XML
However, if I do the same thing from a shell script
$(soffice --headless --convert-to xlsx /home/me/sheets.ods --outdir
/home/me/tmp )
I get this:
func=xmlSecCheckVersionExt:file=xmlsec.c:line=188:obj=unknown:subj=unknown:error=19:invalid
version:mode=abi compatible;expected minor version=2;real minor
version=2;expected subminor version=25;real subminor version=26
convert /tmp/magick-245771VE8simr9bq5 -> /tmp/magick-245771VE8simr9bq5.pdf
using filter : calc_pdf_Export
0123456789012345678901234567890123456789012345678901234567890123456789
I have no idea why it should randomly decide to do anything with PDF.
Quite aside from this, the script then hangs waiting for soffice(?) to
finish, which it never* does.
$ soffice -h | grep LibreOffice
LibreOffice 6.0.7.3 00m0(Build:3)
* Actually, I lie. It takes a long time - way longer than it took to
generate the xslx from the command line - but after some time ps
can't find the soffice process any more. The shell script *still*
doesn't continue/end, however.
--
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy