<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear Ismail,<br>
<br>
Let me try this <br>
<br>
<div class="gmail_extra">Additionally why not just use sh</div>
*/<b>30 * * * * /bin/sh /etc/rsync.sh<br>
<br>
</b> and see the results<br>
<br>
<br>
Actually when i check on the cron logs i see the below line<br>
<br>
Aug 4 21:10:00 mx3 /usr/sbin/cron[13063]: (root) CMD ( ^Ibash
/etc/rsync.sh)<br>
<br>
but nothing is happening in really sense<br>
<br>
<br>
<br>
Thanks<b><br>
<br>
<br>
<br>
</b><br>
<div class="moz-cite-prefix">On 04/08/2015 06:36 alasiri, Ismail
Settenda via Linux wrote:<br>
</div>
<blockquote
cite="mid:CA+tgvaUQGtPuE5c7EUGqTzQdD0E-07F3y3SuQz1m0RXEEXvXEw@mail.gmail.com"
type="cite">
<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>
<br>
<div class="gmail_quote">On 4 August 2015 at 17:45, Seta
Magabe via Linux <span dir="ltr"><<a
moz-do-not-send="true"
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
moz-do-not-send="true"
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
moz-do-not-send="true"
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
moz-do-not-send="true"
href="http://unix.or.tz"
rel="noreferrer"
target="_blank">http://unix.or.tz</a><br>
Linux mailing list<br>
<a moz-do-not-send="true"
href="mailto:Linux@lists.habari.co.tz"
target="_blank">Linux@lists.habari.co.tz</a><br>
<a moz-do-not-send="true"
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
moz-do-not-send="true"
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
moz-do-not-send="true"
href="tel:%2B255713%20529260"
value="+255713529260"
target="_blank">+255713
529260</a> / +</font><span
style="font-family:'comic
sans ms',sans-serif"><a
moz-do-not-send="true"
href="tel:255766844260"
value="+255766844260"
target="_blank">255766844260</a></span></div>
<div><font face="comic sans
ms, sans-serif">E-mail: <a
moz-do-not-send="true"
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 moz-do-not-send="true"
href="tel:%2B255713%20529260"
value="+255713529260" target="_blank">+255713
529260</a> / +</font><span
style="font-family:'comic sans
ms',sans-serif"><a
moz-do-not-send="true"
href="tel:255766844260"
value="+255766844260" target="_blank">255766844260</a></span></div>
<div><font face="comic sans ms, sans-serif">E-mail:
<a moz-do-not-send="true"
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
moz-do-not-send="true" href="http://unix.or.tz"
rel="noreferrer" target="_blank">http://unix.or.tz</a><br>
Linux mailing list<br>
<a moz-do-not-send="true"
href="mailto:Linux@lists.habari.co.tz"
target="_blank">Linux@lists.habari.co.tz</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
The Arusha Linux User Group: <a class="moz-txt-link-freetext" href="http://unix.or.tz">http://unix.or.tz</a>
Linux mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux@lists.habari.co.tz">Linux@lists.habari.co.tz</a>
<a class="moz-txt-link-freetext" href="http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux">http://lists.habari.co.tz/cgi-bin/mailman/listinfo/linux</a>
The Arusha LUG mailing list is generously hosted by Habari Node Ltd: <a class="moz-txt-link-freetext" href="http://www.habari.co.tz/">http://www.habari.co.tz/</a>
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.</pre>
</blockquote>
<br>
</body>
</html>