For your comment:
Should I write a loop in the shell instead?
You can write a very simple shell script to run the command in a loop. First create a script file:
touch myscript.sh
Make the script executable:
chmod 700 myscript.sh
, vim, :
for (( i = 0 ; i <= 5; i++ ))
do
tesseract picture.tif text_file -l eng
done
Thats the very basics of it ( , ), . script, , , script:
./myscript.sh
:
/path/to/mydir/myscript.sh