View Single Post
Old 09-16-2003, 06:52 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Here's an example of what's going on with external binaries.
  1. catdoc spits output to stdout so $result contains output
  2. pdftotext spits output to filename.txt so $result is empty
This means that if the external binary that you are using outputs to stdout, then there is no need to add the switch statement given in the previous post, as $result contains the necessary info for indexing the document.

However, if the external binary does not output to stdout but rather outputs to a file, and the document is not indexed, then check the file extension in the temp directory, modifying the switch statement as necessary.

EDIT: external binary process modified in version 1.6.4.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote