append to log, add started date

This commit is contained in:
Thomas Ruoff
2021-02-04 23:17:24 +01:00
parent f2d178f65f
commit 4927e6a487

4
run.sh
View File

@@ -22,6 +22,8 @@ function ocrFile() {
DST_PDF=$DST_DIR/${FILE_NAME%.*}.pdf
DST_LOG=$LOG_DIR/${FILE_NAME%.*}.log
echo "Started at $(date -Isec)" >> "$DST_LOG"
$OCRMYPDF_CMD \
-l deu \
--clean \
@@ -29,7 +31,7 @@ function ocrFile() {
--deskew \
- - \
< "$SRC" \
> "$DST_PDF" 2> "$DST_LOG"
> "$DST_PDF" 2>> "$DST_LOG"
}
exec 100>"$LOCKFILE" || exit 23