OCR all PDFs in a folder by cron

I will not write a long explanation, just this short one. The cronjob looks like this: * * * * * sh -c 'flock -n /tmp/my.lockfile /home/user/scripts/ocr_pdf_scan.sh' This will start sh (a shell, just like bash) and run the command after -c. The command flock will create a lock-file, to prevent that this cron job is started while there is still the previous cron jobs running. The cron job runs every minute, so in crontab it has * * * * * (five stars in front of the command). ...

3. Juli 2023 · 2 Minuten · utzer