Why Cron not working?

Posted November 14, 2013 12.4k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
by Justin Ellingwood
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/