<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ocr on tech.notes</title>
    <link>https://newblog.utzer.de/tags/ocr/</link>
    <description>Recent content in Ocr on tech.notes</description>
    <generator>Hugo</generator>
    <language>de</language>
    <lastBuildDate>Mon, 03 Jul 2023 08:27:56 +0000</lastBuildDate>
    <atom:link href="https://newblog.utzer.de/tags/ocr/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OCR all PDFs in a folder by cron</title>
      <link>https://newblog.utzer.de/2023/07/03/ocr-all-pdfs-in-a-folder-by-cron/</link>
      <pubDate>Mon, 03 Jul 2023 08:27:56 +0000</pubDate>
       <guid isPermaLink="false">https://tech.utzer.de/?p=150</guid> 
      <description>&lt;p&gt;I will not write a long explanation, just this short one.&lt;/p&gt;
&lt;p&gt;The cronjob looks like this:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;* * * * * sh -c &amp;#39;flock -n /tmp/my.lockfile /home/user/scripts/ocr_pdf_scan.sh&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The cron job runs every minute, so in crontab it has * * * * * (five stars in front of the command).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
