From: Bastian Dehn Date: Sat, 18 Oct 2025 18:28:36 +0000 (+0200) Subject: change scanned with process id X-Git-Tag: v1.1.2^2~2^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=412a644c8d2b6c953bbd3735b6b85a93ebae81a5;p=scantopdf.git change scanned with process id --- diff --git a/src/scanbasic.sh b/src/scanbasic.sh index 8b938fa..b0dd06e 100644 --- a/src/scanbasic.sh +++ b/src/scanbasic.sh @@ -83,7 +83,7 @@ createonepdf() local output_pdf= local tiff= - for tiff in scanned*.tiff; do + for tiff in scanned-$$-*.tiff; do output_pdf=${tiff/.tiff/.pdf} tiff2pdf $tiff -o $output_pdf \ || errlog "could not convert tiff to pdf" \ @@ -158,7 +158,7 @@ detectsplit() createmultipdfs() { - local basename="multi" + local basename="multi-$$" local startcount=1 local endcount=1 @@ -168,7 +168,7 @@ createmultipdfs() local pdf= local tiff= - for tiff in scanned*.tiff; do + for tiff in scanned-$$-*.tiff; do pdf=${tiff/.tiff/.pdf} tiff2pdf $tiff -o $pdf \ || errlog "could not convert $tiff to $pdf" \ @@ -268,7 +268,7 @@ scantopdf() { --format=tiff \ --batch-count=$pagecount \ --batch-increment=1 \ - --batch=scanned%03d.tiff \ + --batch=scanned-$$-%03d.tiff \ || errlog "scan error" \ || return $?