title: Cron job not running created by puppet
body: <p>I want to add 1 cron job in to the machine that will run every 5 minutes, for that I am using this manifest:</p>
  
  <pre><code>class cron_job{
  
      file{"puppet_ls":
              path =&gt; "/puppet/pls.sh",
              ensure =&gt; present,
              content =&gt; "#!/bin/sh\necho \"Hello World\"\nls -ltr /etc/puppet &gt; /puppet/dump.txt"
      }
  
      file { "my_ls.cron":
          path    =&gt; "/etc/cron.d/my_ls.cron",
          ensure  =&gt; present,
          owner   =&gt; "root",
          group   =&gt; "root",
          mode    =&gt; 0644,
          require =&gt; File["puppet_ls"],
          content =&gt; "*/1 * * * *  /puppet/pls.sh\n";
      }
  }
  </code></pre>
  
  <p>So this manifest do 2 things, </p>
  
  <ol>
  <li>It makes a file /puupet/pls.sh with the content specifie, that is actually running the command <strong>ls-ltr /etc/puppet</strong></li>
  <li>It makes an entry in the form of cron job for inside daily category and if you see the last line i.e  <strong>* * * *  /puppet/pls.sh\n</strong>, says that run after every 1 minute(for testing I kept one)</li>
  </ol>
  
  <p>But I am not getting the file <strong>dump.txt</strong> inside <strong>/puppet/</strong>
  Also if I runs, <strong>sh /puppet/pls.sh</strong>, it runs perfectly and generates the dump.</p>
  
  <p>I am unable to understand where is the glitch..
  :(</p>
  
  <p>Please shed some light..</p>
  
  <p>Thanks
  Ankur</p>