We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running unoconv in a loop as follows everything works OK but its slow.
for i in *.odt ; do R=`unoconv --stdout -f text $i | grep -w "word" -c` ; echo $R $i; done
Attempting to speed it up, I spawned each iteration in the background.
LOG="/tmp/odtresults-`date +'%Y%m%d%H%M%S'`.txt" for i in *.odt ; do ( R=`unoconv --stdout -f text $i | grep -w -o "word" | wc -l` echo $R $i >>$LOG ) & done
but this doesnt work as expected. I get a bunch of
Error: Unable to connect or start own listener. Aborting.
errors and a whole lot of stuck processes.
How can I get this to work?
Cheers.
The text was updated successfully, but these errors were encountered:
Ok, I saw your note about starting the listener beforehand and I used your example.
adding
unoconv -l & sleep 15s
fixes my problem. But I'd like to eliminate the 15s delay if possible. How can I know when the listener is ready?
Sorry, something went wrong.
I don't think you can. But a 15 second delay seems excessive? It's just a question of LibreOffice to start, does that take 15 seconds for you?
Unoconv does not support parallel instances. Unoserver might, in theory. https://github.com/unoconv/unoserver
No branches or pull requests
When running unoconv in a loop as follows everything works OK but its slow.
for i in *.odt ; do R=`unoconv --stdout -f text $i | grep -w "word" -c` ; echo $R $i; done
Attempting to speed it up, I spawned each iteration in the background.
but this doesnt work as expected. I get a bunch of
Error: Unable to connect or start own listener. Aborting.
errors and a whole lot of stuck processes.
How can I get this to work?
Cheers.
The text was updated successfully, but these errors were encountered: