Ask Your Question
1

Error converting thousands of documents with LibreOffice

asked 2012-08-02 18:54:17 +0200

Luis Alvarado gravatar image Luis Alvarado
13 3

0 down vote favorite You can't vote for your own post. (click on this box to dismiss)

I am trying to convert several thousand documents from LWP (Lotus Word Pro) to DOC. When the converting process gets to around 229 documents converted it just quits.

The terminal lines I am using to convert this are:

soffice --headless --convert-to doc --outdir /home/cyrex/work/biopsias/2007 *.lwp

or

libreoffice --headless --convert-to doc --outdir /home/cyrex/work/biopsias/2007 *.lwp

both work but up to 229. I have 60K documents to convert I doing them 200 at a time would take A LOT of time.

Converting them to ODT also has the same problem.

I have LibreOffice version 3.5 in Ubuntu 12.04

delete close flag offensive retag edit

Comments

I think @w_whalley is right pointing to shell limitations. Another idea: does the conversion stop while working on a certain file? Or does the problem occur independent of the individual files to convert?

tohuwawohu ( 2012-08-03 17:45:57 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2012-08-02 23:15:54 +0200

w_whalley gravatar image w_whalley flag of United States
1581 10 24

It could be a shell limitation. I tried a set of 500 files using your command line and it stopped at 248 conversions. I then tried using xargs and all 500 converted. Here is the command converted to your case. Test before committing to all 60,000 files.

find . -name "*.lwp" -type f -print0 |xargs -0 -I {} libreoffice --headless --convert-to doc --outdir /home/cyrex/work/biopsias/2007 {}

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-08-02 18:54:17 +0200

Seen: 177 times

Last updated: Aug 02 '12