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

  • SEARCH
  • Home
  • 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 4025890
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:54:10+00:00 2026-05-20T10:54:10+00:00

what happens to my script in python that does not run through crontab every

  • 0

what happens to my script in python that does not run through crontab every minute.
My script has execute permissions and then calls two other scripts in python.


This is the content of my crontab (#crontab -l):
*/1 * * * * /usr/bin/rsm/samplesMonitor.py


Thank you guys.

  • 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-20T10:54:11+00:00Added an answer on May 20, 2026 at 10:54 am

    Check /var/log/syslog for errors.

    DIAGNOSTICS
           cron requires that each entry in a crontab end in a 
           newline character. If the last entry in a crontab is 
           missing a newline (ie, terminated by  EOF),  cron  will 
           consider the crontab (at least partially) broken. A 
           warning will be written to syslog.
    

    Update: According to your log message, the script is running but returning an error code. Cron will email you the output, if you have a mail agent installed.

    Try either:

    1. install a mail agent, such as: apt-get install exim4
    2. change your cron line to log to file, like so:

      * * * * * /usr/bin/rsm/samplesMonitor.py 2>&1 >> /tmp/script.log
      

    Update 2: I re-read your question and it acurred to me that maybe you are running into python import issues. You say that your script calls two other scripts. My suggestion would be to test running your script from /. Python has a default behavior to find imports in the current working directory, so make sure your script can run from any path location.

    In the crontab, you can set the starting working directory by calling your script from within another shell process. For example:

    bash -c "cd THE_WORKING_DIR;/usr/bin/rsm/samplesMonitor.py"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a Python script that I want to run daily via a
I have a Python script script.py that has been defined as executable and which
I have a very basic python script that does HTTP connection. import socket def
What happes when the script that made @mysql_connect($server, $user, $password) dies? How long does
I've got a long running python script that I want to be able to
I am creating a script using Python Mechanize that can login to a website
I'm using a small Python script to generate some binary data that will be
Setup: Python script A inserts data to a database every 15 minutes Python script
I'm trying to write a Python script that starts a subprocess, and writes to
The particular alias I'm looking to class up into a Python script happens to

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.