mirror of
https://github.com/tomru/docscan.git
synced 2026-03-03 06:27:21 +01:00
append to log, add started date
This commit is contained in:
4
run.sh
4
run.sh
@@ -22,6 +22,8 @@ function ocrFile() {
|
|||||||
DST_PDF=$DST_DIR/${FILE_NAME%.*}.pdf
|
DST_PDF=$DST_DIR/${FILE_NAME%.*}.pdf
|
||||||
DST_LOG=$LOG_DIR/${FILE_NAME%.*}.log
|
DST_LOG=$LOG_DIR/${FILE_NAME%.*}.log
|
||||||
|
|
||||||
|
echo "Started at $(date -Isec)" >> "$DST_LOG"
|
||||||
|
|
||||||
$OCRMYPDF_CMD \
|
$OCRMYPDF_CMD \
|
||||||
-l deu \
|
-l deu \
|
||||||
--clean \
|
--clean \
|
||||||
@@ -29,7 +31,7 @@ function ocrFile() {
|
|||||||
--deskew \
|
--deskew \
|
||||||
- - \
|
- - \
|
||||||
< "$SRC" \
|
< "$SRC" \
|
||||||
> "$DST_PDF" 2> "$DST_LOG"
|
> "$DST_PDF" 2>> "$DST_LOG"
|
||||||
}
|
}
|
||||||
|
|
||||||
exec 100>"$LOCKFILE" || exit 23
|
exec 100>"$LOCKFILE" || exit 23
|
||||||
|
|||||||
Reference in New Issue
Block a user