From d697deda704e14eb0418b3ff021f33bfe6801d37 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 15 Feb 2022 08:52:01 +0100 Subject: [PATCH] add timeout --- ocr-deamon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocr-deamon.sh b/ocr-deamon.sh index 6d717c9..b094c6c 100755 --- a/ocr-deamon.sh +++ b/ocr-deamon.sh @@ -4,7 +4,7 @@ DOKUMENT_DIR=/home/simono41/data1/Dokumente find ${DOKUMENT_DIR} -path ${DOKUMENT_DIR}/.stversions -prune -type f -o -name "*.pdf" ! -name '*-ocr.pdf' -print | while read file; do if ! [ -f "${file%.*}-ocr.pdf" ]; then - ocrmypdf -l deu+eng -c --jbig2-lossy --tesseract-timeout 60 "${file}" "${file%.*}-ocr.pdf" + timeout 60 ocrmypdf -l deu+eng -c "${file}" "${file%.*}-ocr.pdf" sleep 1 else echo "Datei wurde bereits verarbeitet"