Perlfect Solutions

[Perlfect-search] Re: Indexing Microsoft Documents

Cameron Moore
Mon, 29 Oct 2001 10:20:49 -0600
* [2001.10.29 09:24]:
>    Cameron,
>    I downloaded the already compiled Windows version of antiword and
>    incorporated the patches that Yuriy suggested.  But when I try to
>    index my files, I get the following errors.  It cannot execute
>    antiword.exe :
>    Cannot execute
>    'c:/antiword/antiword.exe
>    mpfile -':  at line 424.
>    Cannot execute
>    'c:/antiword/antiword.exe
>    mpfile -':  at line 424.

First, take out the hyphen in the command line.  It defaults to STDOUT.
Just execute `$DOCTOTEXT $file`.  See what that does.

If that doesn't fix it, can you run antiword just from the command line?
Can you write a small test script and see what happens?  Something

  system('c:/antiword/antiword.exe /path/to/file');

Finally, I'm not sure if it's part of your message formatting that got
mangled or what, but make sure you don't have an endline in the
$DOCTOTEXT variable.  You should execute this:

  'c:/antiword/antiword.exe mpfile'

not this:


Let me know if this helps.
Cameron Moore
/ What do you do when you see an endangered \
\  animal that eats only endangered plants? /