0

Dears,

i configured script in crontab to run every 10 minutes and its not working at all. I dont see any entry in configured log path (/var/log/cron)

"*/10 * * * * example_script.sh"

However if i change crontab syntax to following:

"* * * * * example_script.sh"

It executing script every 10 minutes. I see that in configured log path Crond is running, it even has been restarted. No errors in cron log file. example_script.sh is just an example, i have it configured with absolute path. Also it works accordingly with the same crontab configuration but on the other system which serves for the same purpose (just in another network zone)

Why is that happening? Are there any config files allowing to modify crontab syntax itself?

Sudoo
  • 11

3 Answers3

1

not all versions of cron support the step extension.

check the crontab(5) man page to see what your version supports.

man 5 crontab

if you can't use */10 you'll have to do it the long way - with a list

0,10,20,30,40,50 * * * * example_script.sh
Jasen
  • 1,126
1

Root password expired so i changed it to never expire and i must have wait a while to have cron working accordingly

Sudoo
  • 11
0

It is strange that the following is executing it every 10 minutes:

* * * * * example_script.sh

It should run it every minute. Or do you have some sleep in your example_script.sh?

How do you configure the cronjob? Just crontab -e or are you placing it somewhere in /etc/cron.d?

C-nan
  • 131