<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Batch libreoffice --convert-to offers no way to wait for document completion"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117731#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - Batch libreoffice --convert-to offers no way to wait for document completion"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117731">bug 117731</a>
from <span class="vcard"><a class="email" href="mailto:richard.elkins@gmail.com" title="Richard Elkins <richard.elkins@gmail.com>"> <span class="fn">Richard Elkins</span></a>
</span></b>
<pre>Like you, when I ran LibreOffice under Xubuntu 16.04 and 17.10, there was no
timing issue. This only has appeared for me in 18.04.
In a terminal window (I've done this before),
`libreoffice --headless --convert-to odt:writer8 myfile.txt; ls *.odt` result:
ls: cannot access '*.odt': No such file or directory
My LibreOffice packages installed:
ii libreoffice 1:6.0.3-0ubuntu1 amd64
office productivity suite (metapackage)
ii libreoffice-avmedia-backend-gstreamer 1:6.0.3-0ubuntu1 amd64
GStreamer backend for LibreOffice
ii libreoffice-base 1:6.0.3-0ubuntu1 amd64
office productivity suite -- database
ii libreoffice-base-core 1:6.0.3-0ubuntu1 amd64
office productivity suite -- shared library
ii libreoffice-base-drivers 1:6.0.3-0ubuntu1 amd64
Database connectivity drivers for LibreOffice
ii libreoffice-calc 1:6.0.3-0ubuntu1 amd64
office productivity suite -- spreadsheet
ii libreoffice-common 1:6.0.3-0ubuntu1 all
office productivity suite -- arch-independent files
ii libreoffice-core 1:6.0.3-0ubuntu1 amd64
office productivity suite -- arch-dependent files
ii libreoffice-draw 1:6.0.3-0ubuntu1 amd64
office productivity suite -- drawing
ii libreoffice-gnome 1:6.0.3-0ubuntu1 amd64
office productivity suite -- GNOME integration
ii libreoffice-gtk 1:6.0.3-0ubuntu1 all
transitional package for LibreOffice gtk2 backend
ii libreoffice-gtk2 1:6.0.3-0ubuntu1 amd64
office productivity suite -- GTK+ 2 integration
ii libreoffice-gtk3 1:6.0.3-0ubuntu1 amd64
office productivity suite -- GTK+ 3 integration
ii libreoffice-help-en-us 1:6.0.3-0ubuntu1 all
office productivity suite -- English_american help
ii libreoffice-impress 1:6.0.3-0ubuntu1 amd64
office productivity suite -- presentation
ii libreoffice-java-common 1:6.0.3-0ubuntu1 all
office productivity suite -- arch-independent Java support files
ii libreoffice-librelogo 1:6.0.3-0ubuntu1 all
Logo-like progamming language for LibreOffice
ii libreoffice-math 1:6.0.3-0ubuntu1 amd64
office productivity suite -- equation editor
ii libreoffice-nlpsolver 0.9+LibO6.0.3-0ubuntu1 all
"Solver for Nonlinear Programming" extension for LibreOffice
ii libreoffice-ogltrans 1:6.0.3-0ubuntu1 amd64
LibreOffice Impress extension for slide transitions using OpenGL
ii libreoffice-report-builder 1:6.0.3-0ubuntu1 all
LibreOffice component for building database reports
ii libreoffice-report-builder-bin 1:6.0.3-0ubuntu1 amd64
LibreOffice component for building database reports -- libraries
ii libreoffice-script-provider-bsh 1:6.0.3-0ubuntu1 all
BeanShell script support provider for LibreOffice scripting framework
ii libreoffice-script-provider-js 1:6.0.3-0ubuntu1 all
JavaScript script support provider for LibreOffice scripting framework
ii libreoffice-script-provider-python 1:6.0.3-0ubuntu1 all
Python script support provider for LibreOffice scripting framework
ii libreoffice-sdbc-hsqldb 1:6.0.3-0ubuntu1 amd64
HSQLDB SDBC driver for LibreOffice
ii libreoffice-sdbc-postgresql 1:6.0.3-0ubuntu1 amd64
PostgreSQL SDBC driver for LibreOffice
ii libreoffice-style-elementary 1:6.0.3-0ubuntu1 all
office productivity suite -- Elementary symbol style
ii libreoffice-style-galaxy 1:6.0.3-0ubuntu1 all
office productivity suite -- Galaxy (Default) symbol style
ii libreoffice-style-tango 1:6.0.3-0ubuntu1 all
office productivity suite -- Tango symbol style
ii libreoffice-wiki-publisher 1.2.0+LibO6.0.3-0ubuntu1 all
LibreOffice extension for working with MediaWiki articles
ii libreoffice-writer 1:6.0.3-0ubuntu1 amd64
office productivity suite -- word processor
Just now, I reproduced this anomaly. My script is as follows:
### Create somehow a file called myfile.txt
rm myfile.odt somewhere-else.odt
libreoffice --headless --convert-to odt:writer8 myfile.txt
RC=$?
if [ $RC -ne 0 ]; then
echo '*** libreoffice conversion failed for myfile.txt'
exit 86
fi
#sleep 3
cp myfile.odt somewhere-else.odt
As is, it consistently produces the reported anomaly.
When I uncomment the sleep step, all is well.
This might be an interface issue with newer version dependencies of
LibreOffice. Its hard to tell. How would I investigate without knowing a lot
of LibreOffice internals?
I am open to suggestion and further investigation. I am a multi-level
developer in case you want me to try something unusual.
Suggestion: have someone try my test script under any flavor of Ubuntu 18.04.
If you cannot reproduce this report, then just close it as unreproducable.
Please note: This report should be not a high priority as my 3-second delay
consistently works for me i.e. I am not stuck.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>