Why Cron not working?

November 14, 2013 7.6k views
I am up CentOS 6. Write to /etc/crontab 2 tasks: #=========================== SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts */5 * * * * sh /etc/sphinx/ */1 * * * * touch /etc/sphinx/ #=========================== Execute >crond start But appears that as if cron it does not start task. With the aid of the touch I check it did change the time of access to the file. What I do make wrong?
2 Answers
Many tasks that you perform on a Linux server are repetitive and must be run at regular intervals. The cron and anacron utilities can be used to schedule tasks to run in the background at specific intervals. In this guide we will discuss the basics of how to use these two tools.
Thank you Pablo, it was necessary to add user:
*/5 * * * * root sh /etc/sphinx/
Have another answer? Share your knowledge.