I'm new to this.
We are using alfresco-4.2.2 on RHEL6.5x64, and within a bash script, we call 'tesseract' to do the img to txt conversion.
something like
/usr/bin/tesseract $f $TMPDIR/${f%.*} -l eng
and we the .jpg file as a $f variable
When i manually execute the bash script, it calls tesseract and executing the command. No issues
But, when we call the script via alfresco application( a java JVM calls the script the same method its executed via command line), it doesn't execute the 'tesseract' command alone. All other commands within the script is being executed.
Any idea?
I tried to trace it with
/usr/bin/tesseract $f $TMPDIR/$name/${f%.*} -l eng | tee -a /tmp/tee.log
but no update to the /tmp/tee.log -- via alfresco application execution. When i run the script manually, tesseract command is getting executed, and able to see the "Tesseract Open Source OCR Engine v3.01 with Leptonica" entry in the tee.log file..
Thanks for assistance.