Re: crontab - scripts not exiciting.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If it tries to execute something in another dir an this dir doesnt have the right peissions it wont execute

Em 10/03/2011 19:53, "Gregory Machin" <gdm@xxxxxxxxxxxxxx> escreveu:
> Hi.
> I have a script that needs to run from a cron job. I added the script
> as explained, in the deployment instructions.
>
> crontab -e (root) looks as follows
>
> * * * * * /usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server1
> -z 10.24.0.231 > /dev/null 2>&1
> * * * * * /usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server2
> -z 10.24.0.231 > /dev/null 2>&1
>
> file permissions
> # ls -asl /usr/bin/ZabbixApacheUpdater.py
> 12 -rwxr--r-- 1 root root 8740 Mar 11 10:05 /usr/bin/ZabbixApacheUpdater.py
>
> the messages log indicates that it has run
>
>
> Mar 11 11:47:01 linux-epfq /usr/sbin/cron[18297]: (root) CMD
> (/usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server1 -z
> 10.24.0.231 > /dev/null 2>&1 )
> Mar 11 11:47:01 linux-epfq /usr/sbin/cron[18299]: (root) CMD
> (/usr/bin/python /usr/bin/ZabbixApacheUpdater.py -c server2 -z
> 10.24.0.231 > /dev/null 2>&1)
>
> But it's not doing anything.
> When I run the same syntax command from the command line it runs
> correctly every time.
>
> I have tried changing the fill permissions and the syntax of the cron
> entries but nothing works.
>
> Any ideas what I have missed ?
>
> Thanks
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux