<div class="gmail_extra">Hi, Seth -<br><br><div class="gmail_quote">On 13 December 2012 17:37, Seth Turner <span dir="ltr">&lt;<a href="mailto:sturner@fraunhofer-cmb.org" target="_blank">sturner@fraunhofer-cmb.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Are you saying to change it to:<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"># /etc/cron.d/zendto: crontab fragment for zendto<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">5 0 * * * root /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php<u></u><u></u></span></p><p class="">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">2 10 * * * root /usr/bin/php /opt/zendto/sbin/rrdInit.php /dev/null<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">2 12 * * * root /usr/bin/php /opt/zendto/sbin/rrdUpdate.php /dev/null<u></u><u></u></span></p>
<p class=""></p></blockquote></div><br>Not quite, I suspect. The syntax of a line in the crontab is this:</div><div class="gmail_extra"><ul><li>The first five fields specify the minute, hour, and date the commend is to run (check the man page if you&#39;re interested which is which: I always forget and have to!)</li>
<li>The next field is the username to run the command as</li><li>And the rest is the command to be run, just as from a command prompt</li></ul><div>That means to redirect the output from a command you put &quot;&gt; /dev/null&quot; at the end of it. For example,</div>
<div><ul><li></li><li>2 10 * * * root /usr/bin/php /opt/zendto/sbin/rrdInit.php &gt; /dev/null</li><li>2 12 * * * root /usr/bin/php /opt/zendto/sbin/rrdUpdate.php &gt; /dev/null</li></ul></div><div>Note that I don&#39;t know whether those are the right two command to redirect the output for, but they look likely. You could either do both, do one and see if it fixes the problem, or run the command manually (as root) and see which produces the output.</div>
<div><br></div><div>Cheers,</div><div>Mike B-)</div>-- <br><font size="1"><font face="&#39;arial narrow&#39;, sans-serif"><span style="font-size:small">IT Services, The University of York, Heslington, York YO10 5DD, UK<br>
Tel: +44-1904-323811</span><span style="font-size:small"><br>Disclaimer: &lt;</span><a href="http://www.york.ac.uk/docs/disclaimer/email.htm" target="_blank"><span style="font-size:small">http://www.york.ac.uk/docs/disclaimer/email.htm</span></a><span style="font-size:small">&gt;</span></font><br>
</font><br>
</div>