<p>If it tries to execute something in another dir an this dir doesnt have the right peissions it wont execute<br>
</p>
<div class="gmail_quote">Em 10/03/2011 19:53, &quot;Gregory Machin&quot; &lt;<a href="mailto:gdm@linuxpro.co.za">gdm@linuxpro.co.za</a>&gt; escreveu:<br type="attribution">&gt; Hi.<br>&gt; I have a script that needs to run from a cron job. I added the script<br>
&gt; as explained, in the deployment instructions.<br>&gt; <br>&gt; crontab -e (root) looks as follows<br>&gt; <br>&gt; * * * * *  /usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server1<br>&gt; -z 10.24.0.231 &gt; /dev/null 2&gt;&amp;1<br>
&gt; * * * * *  /usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server2<br>&gt; -z 10.24.0.231 &gt; /dev/null 2&gt;&amp;1<br>&gt; <br>&gt; file permissions<br>&gt;  # ls -asl /usr/bin/ZabbixApacheUpdater.py<br>&gt; 12 -rwxr--r-- 1 root root 8740 Mar 11 10:05 /usr/bin/ZabbixApacheUpdater.py<br>
&gt; <br>&gt; the messages log indicates that it has run<br>&gt; <br>&gt; <br>&gt; Mar 11 11:47:01 linux-epfq /usr/sbin/cron[18297]: (root) CMD<br>&gt; (/usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server1 -z<br>&gt; 10.24.0.231 &gt; /dev/null 2&gt;&amp;1 )<br>
&gt; Mar 11 11:47:01 linux-epfq /usr/sbin/cron[18299]: (root) CMD<br>&gt; (/usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server2 -z<br>&gt; 10.24.0.231 &gt; /dev/null 2&gt;&amp;1)<br>&gt; <br>&gt; But it&#39;s not doing anything.<br>
&gt; When I run the same syntax command from the command line it runs<br>&gt; correctly every time.<br>&gt; <br>&gt; I have tried changing the fill permissions and the syntax of the cron<br>&gt; entries but nothing works.<br>
&gt; <br>&gt; Any ideas what I have missed ?<br>&gt; <br>&gt; Thanks<br>&gt; -- <br>&gt; users mailing list<br>&gt; <a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>&gt; To unsubscribe or change subscription options:<br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/users">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>&gt; Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
</div>