https://bugs.documentfoundation.org/show_bug.cgi?id=117731

            Bug ID: 117731
           Summary: Batch libreoffice --convert-to offers no way to wait
                    for document completion
           Product: LibreOffice
           Version: 6.0.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: richard.elk...@gmail.com

Description:
Command-line: libreoffice --headless --convert-to odt:writer8 myfile.txt
The returned status code ($?) is zero.  So far, so good.
But, when I try to use the ODT file (E.g. copy it), it doesn't exist yet.
Yes, I tried `sync; sync; sync` but it did not help.
If I add a `sleep 1` immediately after checking the status code, then this
seems to allow enough time for some libreoffice subprocess (?) to finish.

Before version 6, I did not need the sleep step.  Maybe, this is some sort of
optimization?  If so, please provide an option to indicate that libreoffice
should hold up the process until the desired output is available.

I am using libreoffice 1:6.0.3-0ubuntu1 on Xubuntu 18.04.

`libreoffice --help` shows: 
LibreOffice 6.0.3.2 00m0(Build:2)


Steps to Reproduce:
Linux batch script, starting with an existing text file called "myfile.txt":

        libreoffice --headless --convert-to odt:writer8 myfile.txt
        RC=$?
        if [ $RC -ne 0 ]; then 
                echo '*** libreoffice conversion failed for myfile.txt'
                exit 86
        fi
        cp myfile.odt somewhere-else.odt



Actual Results:  
cp: cannot stat 'myfile.odt': No such file or directory



Expected Results:
Copy completes as normal because myfile.odt is available.


Reproducible: Always


User Profile Reset: No



Additional Info:




User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101
Firefox/60.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to