Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crontab is not working as expected

Tags:

python

cron

I created one crontab entry by which it is supposed to run the python script every one hour. Here is my crontab entry:

0 * * * * /usr/bin/python3.4 /home/nattubuntu1/lab/files/cdr_format_change.py

But it is running every 10 minutes. After a bit research, I found this crontab entry to run job every hour. What is going wrong with this? how do I run my python script every hour? Thank you

like image 573
Sarika Ovahal Avatar asked Feb 04 '26 00:02

Sarika Ovahal


1 Answers

From what I can see, nothing. However, as an aside, you can solve this problem by placing your cronjob in "cron.hourly".

This is usually located in /etc/cron.hourly/


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!