<div dir="ltr"><div>Hello's</div><div><br></div><div>*/<b>30 * * * *    /usr/local/bin/bash /etc/rsync.sh   -- </b> sounds about right but your explanation there after kidogo seems inconsistent.</div><div><br></div><div>*/30 and 30 would mean the same thing for the first portion ....i.e. to run every 30th minute of the hour or to run every 30 minutes result in the same answer cause half of the hour is 30 mins but is very different use another figure.</div><div><br></div><div> */2<b>0 * * * * or  </b>2<b>0 * * * * the first now means </b>to run at intervals of 20 minute of the hour and <b>the second</b> to run at 20th minute of ever hour. The first will run 3 times in an hour whereas the second will run only once in an hour.</div><div><br></div><div>Now I would suspect your problem is more with the second portion of the command (<i>am assuming you running this as root</i>).</div><div><br></div><div><b> /usr/local/bin/bash ....two things ..can you confirm this is the right path to the bash command by say</b><br></div><div><b><br></b></div><div><b>ls </b><b> /usr/local/bin/bash</b></div><div><b><br></b></div><div><b>or do you really need it and re-write the cron command as :</b></div><div><b><br></b></div><div>*/<b>30 * * * *   /etc/rsync.sh</b><br></div><div>which is the same as </div><div><b>30 * * * *   /etc/rsync.sh</b></div><div><b><br></b><div><div class="gmail_extra">Additionally why not just use sh</div><div class="gmail_extra">*/<b>30 * * * *    /bin/sh /etc/rsync.sh</b><br clear="all"><div><div><div dir="ltr"><br></div><div dir="ltr">Regards</div><div dir="ltr"><br></div><div dir="ltr">--<br>Ismail <br><div></div><div></div><div></div><div></div><div></div><div></div></div></div></div>
<br><div class="gmail_quote">On 4 August 2015 at 17:45, Seta Magabe via Linux <span dir="ltr"><<a href="mailto:linux@lists.habari.co.tz" target="_blank">linux@lists.habari.co.tz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oh yes do you have any errors or why don't you just send the output of it while running to see what's happening like pipe it somewhere  i am using this to get my daily pbx Report when ever something goes wrong i see it on my log file at the end "27 17 * * * root /bin/bash -l -c 'cd /var/log/asterisk/daily-pbx-report/ && (date && ./daily.sh) >> daily-script.log 2>&1' "</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 4, 2015 at 5:17 PM, Hamisi Jabe <span dir="ltr"><<a href="mailto:administrator@banana.co.tz" target="_blank">administrator@banana.co.tz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    The start symbolizes every 20 minutes <br><div><div>
    <br>
    <br>
    <br>
    <br>
    <div>On 04/08/2015 05:15 alasiri, Seta
      Magabe wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I think you should remove that star in the
        beginning of your command  try this <span style="font-size:12.8000001907349px">/</span><b style="font-size:12.8000001907349px">30 * * * *   
          /usr/local/bin/bash /etc/rsync.sh  </b>
        <div><span style="font-size:12.8000001907349px">and not *</span><span style="font-size:12.8000001907349px">/</span><b style="font-size:12.8000001907349px">30 * * * *   
            /usr/local/bin/bash /etc/rsync.sh</b>
          <div><br>
          </div>
        </div>
        <div>Thanks</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Aug 4, 2015 at 4:51 PM, Hamisi
          Jabe via Linux <span dir="ltr"><<a href="mailto:linux@lists.habari.co.tz" target="_blank">linux@lists.habari.co.tz</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Dear All,<br>
              <br>
              Hope everyone is doing on fine,<br>
              <br>
              I am trying to set crons on Freebsd to run a script but
              its not executing though when i run the script directly it
              is running properlly from start to end<br>
              <br>
              Please help<br>
              <br>
              script directory   without the quotes        "<b>/etc/rsync.sh</b>"<br>
              <br>
              cron job command   without the quotes    "*/<b>30 * * * *
                   /usr/local/bin/bash /etc/rsync.sh</b>"<br>
              <br>
              <br>
              <br>
              Any help please<br>
              <br>
              <br>
              Thanks<br>
            </div>
            <br>
            _______________________________________________<br>
            The Arusha Linux User Group: <a href="http://unix.or.tz" rel="noreferrer" target="_blank">http://unix.or.tz</a><br>
            Linux mailing list<br>
            <a href="mailto:Linux@lists.habari.co.tz" target="_blank">Linux@lists.habari.co.tz</a><br>
            <a href="http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux" rel="noreferrer" target="_blank">http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux</a><br>
            <br>
            The Arusha LUG mailing list is generously hosted by Habari
            Node Ltd: <a href="http://www.habari.co.tz/" rel="noreferrer" target="_blank">http://www.habari.co.tz/</a><br>
            <br>
            The above comments and data are owned by whoever posted them
            (including attachments if any). The mailing list host is not
            responsible for them in any way.<br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>
          <div dir="ltr">
            <div><font face="comic sans ms, sans-serif">Seta James
                Magabe<br>
                Mobile:<a href="tel:%2B255713%20529260" value="+255713529260" target="_blank">+255713 529260</a> / +</font><span style="font-family:'comic sans ms',sans-serif"><a href="tel:255766844260" value="+255766844260" target="_blank">255766844260</a></span></div>
            <div><font face="comic sans ms, sans-serif">E-mail: <a href="mailto:setama2001@gmail.com" target="_blank">setama2001@gmail.com</a></font></div>
            <div><font face="comic sans ms, sans-serif">Skype:
                magabe.seta<br>
              </font><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><font face="comic sans ms, sans-serif">Seta James Magabe<br>Mobile:<a href="tel:%2B255713%20529260" value="+255713529260" target="_blank">+255713 529260</a> / +</font><span style="font-family:'comic sans ms',sans-serif"><a href="tel:255766844260" value="+255766844260" target="_blank">255766844260</a></span></div><div><font face="comic sans ms, sans-serif">E-mail: <a href="mailto:setama2001@gmail.com" target="_blank">setama2001@gmail.com</a></font></div><div><font face="comic sans ms, sans-serif">Skype: magabe.seta<br></font><br></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
The Arusha Linux User Group: <a href="http://unix.or.tz" rel="noreferrer" target="_blank">http://unix.or.tz</a><br>
Linux mailing list<br>
<a href="mailto:Linux@lists.habari.co.tz" target="_blank">Linux@lists.habari.co.tz</a><br>
<a href="http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux" rel="noreferrer" target="_blank">http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux</a><br>
<br>
The Arusha LUG mailing list is generously hosted by Habari Node Ltd: <a href="http://www.habari.co.tz/" rel="noreferrer" target="_blank">http://www.habari.co.tz/</a><br>
<br>
The above comments and data are owned by whoever posted them (including attachments if any). The mailing list host is not responsible for them in any way.<br></blockquote></div><br></div></div></div></div>