Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 646213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:35:14+00:00 2026-05-13T21:35:14+00:00

thanks for helping me setting my cron jobs, crontab has really been a gold

  • 0

thanks for helping me setting my cron jobs, crontab has really been a gold mine for me.

Unfortunately I have a problem, and have no idea what so ever what it might be… basically a job does not start while the neighbour jobs do. I’ll explain


This is my crontabs job list:

*/10 * * * * python /webapps/foo/manage.py fetch_articles

*/10 * * * * python /webapps/bar/manage.py fetch_books

I wrote them as they are in a file and stored them using crontab /path/to/file .

Checked with crontab -l and the jobs are there.


The strange thing is that 1 of these executes every 10 minutes normally… but the other one does not. I tried typing in the command manually, and it works fine without a problem.


Does anyone have suggestions?

Help would be much appreciated, thanks guys.


Update:

I’ve been in the system log files and I found this:

Mar 5 02:50:01 localhost CRON[21652]: (root) CMD (python /webapps/foo/manage.py fetch_books)

Does this mean crontab is calling the job fine?


Thanks for your replies guys!


FIXED IT! thank you very much everyone!!

The problem was that the script silently failed, I believe it’s due to the PYTHON_PATH changing due to where the script is called from… I’m entirely sure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:35:14+00:00Added an answer on May 13, 2026 at 9:35 pm

    Cron always runs in an environment different to what you think 🙂

    I always have my cronjobs set up like:

    */10 * * * * ( date ; python /webapps/foo/manage.py fetch_articles ) >>/tmp/fetch.out 2>&1
    

    to ensure that there’s something logged that I can look at.

    This will narrow your problem down to either:

    • cron, if the temp file doesn’t appear; or
    • your script, if it does appear.

    And, in the latter case, hopefully there’ll be some output you can debug. If not, put output in there.

    One way to do that is to put:

    set -x
    

    at the top of the script which will cause all lines to be output before execution. All of my scripts tend to start:

    #!/bin/bash
    #set -x
    

    so I can just uncomment that second line while debugging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a designer that has been helping me with a website. Unfortunately, they
Alright I'll try to explain my problem. Thanks for helping Simsoft. Frame 1 has
Thanks to everyone out there helping newbies like me. So far I have this:
Thanks for helping. I have a view that allows me to upload a csv
THANKS FOR HELPING!!! Ok... So I am trying to write a script that will
thanks for helping a novice. I'm trying to use the value of a Text
Sorry if this is too simple, but thanks in advance for helping. This is
I have a problem with link buttons at jQuery. The most forum entries I
Since today my app throws this error: Thanks for helping! Warning: fopen() [function.fopen]: php_network_getaddresses:
Hello there freaks & geeks. Here comes my question again, thanks for helping!. Lets

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.