<?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>Cron on Marco Gabriel Blog</title>
    <link>https://www.marcogabriel.com/tags/cron/</link>
    <description>Recent content in Cron on Marco Gabriel Blog</description>
    <image>
      <title>Marco Gabriel Blog</title>
      <url>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 23 Jan 2013 05:07:13 +0100</lastBuildDate>
    <atom:link href="https://www.marcogabriel.com/tags/cron/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>rsync nur einmal starten</title>
      <link>https://www.marcogabriel.com/posts/603-rsync-nur-einmal-starten/</link>
      <pubDate>Wed, 23 Jan 2013 05:07:13 +0100</pubDate>
      <guid>https://www.marcogabriel.com/posts/603-rsync-nur-einmal-starten/</guid>
      <description>&lt;p&gt;Ab und an dauert ein rsync Job länger als geplant. Wenn man sicherstellen möchte, dass rsync in einem Cronjob nur ausgeführt wird, falls es nicht schon läuft, kann man folgendes Konstrukt verwenden:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;pgrep -c rsync || rsync [options] quelle ziel
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Ich hatte das vor einiger Zeit bei Serverfault schon mal als Antwort eingestellt, aber eigentlich ist es in meinem Blog auch gut aufgehoben.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Error: bad minute; while reading /etc/crontab</title>
      <link>https://www.marcogabriel.com/posts/515-error-bad-minute-while-reading-etccrontab/</link>
      <pubDate>Thu, 09 Jul 2009 14:22:17 +0200</pubDate>
      <guid>https://www.marcogabriel.com/posts/515-error-bad-minute-while-reading-etccrontab/</guid>
      <description>&lt;p&gt;Gerade eben stellte ich fest, dass auf einem Ubuntu 8.04 Server die Cron-Jobs nicht mehr ausgeführt werden. Also machte ich mich auf die Suche nach dem Grund, konnte ihn aber zunächst nicht finden. In der /var/log/syslog dann der erste Hinweis:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Error: bad minute; while reading /etc/crontab
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Die /etc/crontab sah allerdings sehr normal aus. Da gab es keine falschen Einträge oder fehlende Angaben. Nach einigem auskommentieren und testen bin ich dann auf die Lösung gekommen. In der crontab fand ich folgende Zeile, bei der ich mir erst mal nichts dachte:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
