Batch headless conversion from doc to docx

Running into something odd. I have written a script to recursively find and convert all doc files to docx (the microsoft tool is a joke). Works pretty well unless the path length is rather long.

for example,

libreoffice4.4 --headless --convert-to docx --outdir /u/user/doc_folder /u/user/doc_folder/old_office/file.doc

works fine.


libreoffice4.4 --headless --convert-to docx --outdir /net/scale/fs0/shares/share_name/user/doc_folder /net/scale/fs0/shares/share_name/user/doc_folder/old_office/file.doc

fails with 0x11b error

string length limitation? problem with nfs mounts?

Any update?