Remove the ">" just specify the filename for the output. Use > for errors 
e.g., 2> /home/t/$key.err

On Friday, January 31, 2014 10:20:50 AM UTC-5, peiman F. wrote:
>
> hello all
> i have to run tesseract in php project with exec command
> but the exec will crash on start of tesseract working
>
> my code is something like this
>
>         foreach($files as $key=>$fil){
>                         exec("tesseract $fil $html -l eng -psm 6  hocr > 
> /home/t/$key.txt ");
>         }
> print('1000');
>
> but this code crash the exec and script dont continue hish job
> and thats amazing the tesseract will work and ocr all pages!!!
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/b7c832f3-464e-4c42-b9d3-20d9b5bd57a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to