I came across the unoconv linux utility for converting document formats. I found that unoconv produces different output everytime it is called with same input file.

bash$ unoconv -f doc test.html
bash$ md5sum test.doc
5895dee91a64699d04dfdb71c2be780b
bash$ rm test.doc
bash$ unoconv -f doc test.html
bash$ md5sum test.doc
33ec9298ef4c40c50cc4ade7bf1ab93a

How to overcome this behaviour?

link|improve this question
feedback

1 Answer

You could diff the results to see what is causing the difference - my guess is a timestamp. Wordprocessor documents can contain functions and fields that are evaluated when "published".

$ unoconv -f doc test1.html
$ unoconv -f doc test2.html
$ diff test1.htm test2.html
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.