<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xml:lang="fr">

  <title type="html">Humus numericus - Mot-clé - cron</title>
  <subtitle type="html"></subtitle>
  <link href="https://blog.nozav.org/feed/tag/cron/atom" rel="self" type="application/atom+xml"/>
  <link href="https://blog.nozav.org/" rel="alternate" type="text/html"
  title=""/>
  <updated>2019-05-09T20:00:29+02:00</updated>
  <author>
    <name></name>
  </author>
  <id>urn:md5:c2531a830c9d2a52c5500061b4d5077e</id>
  <generator uri="http://www.dotclear.org/">Dotclear</generator>

  
  <entry>
    <title>Don't put a dot in your cronjobs names !</title>
    <link href="https://blog.nozav.org/post/2010/02/10/Don-t-put-a-dot-in-your-cronjobs-names-%21" rel="alternate" type="text/html"
    title="Don't put a dot in your cronjobs names !" />
    <id>urn:md5:2edc0160261bd574f96664f96d6e3f09</id>
    <published>2010-02-10T17:23:00+01:00</published>
          <updated>2010-03-08T17:53:43+01:00</updated>
            <author><name>Juba</name></author>
        <dc:subject>Linux, Debian, etc.</dc:subject>
        <dc:subject>cron</dc:subject><dc:subject>sysadmin</dc:subject>
    <content type="html">    &lt;p&gt;So you just setup a wonderful new cron job on your server that will make your life easier and your family happy. You put it in your &lt;code&gt;/etc/cron.d&lt;/code&gt; in a file called &lt;code&gt;wonderfulcronjob.sh&lt;/code&gt; but&amp;#8230; your job is never launched.&lt;/p&gt;


&lt;p&gt;You checked the permissions, the crontab syntax, ran the script manually, evertything is fine. You checked your syslog, but nothing is reported on it, not even the fact that the job is started. What&amp;#8217;s the problem&amp;#160;?&lt;/p&gt;


&lt;p&gt;The answer is in the &lt;code&gt;run-parts&lt;/code&gt; manual page&amp;#160;:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;If  the &amp;#8212;lsbsysinit  option  is not given then the names must consist entirely of upper and lower  case  letters,  digits,  underscores,  and hyphens.&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;So if you put a dot in your cron job name, it will not be run at all. Rename it to &lt;code&gt;wonderfulcronjob-sh&lt;/code&gt; or just &lt;code&gt;wonderfulcronjob&lt;/code&gt; and everything should work fine.&lt;/p&gt;


&lt;p&gt;Thanks to &lt;a href=&quot;http://arnaud.luquin.info/&quot; hreflang=&quot;fr&quot;&gt;birdy&lt;/a&gt; for finding this one&amp;#8230;&lt;/p&gt;</content>

    


      </entry>
  
</feed>
