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