mirror of
https://github.com/tomru/docscan.git
synced 2026-03-02 22:17: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_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
|
||||
|
||||
Reference in New Issue
Block a user