[Answer]-Cron not firing at regular intervals

1👍

The correct syntax for executing every 5 minutes would be

*/5 * * * * root /home/anurag/projects/virtualenvs/django6/bin/python /home/anurag/Documents/HNStories/hnstories/manage.py get_stories >> /home/anurag/cron_log.txt 

Another reason why the command isn’t executing might be a missing newline at the end of /etc/crontab

EDIT:
You might also want to look into django-extensions which provides a command extension (runjobs) to run scheduled jobs.

Leave a comment