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 6564131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:55:43+00:00 2026-05-25T13:55:43+00:00

I need urgent help in this regard. I am trying to run a Python

  • 0

I need urgent help in this regard. I am trying to run a Python script via cron job on cPanel. The web hosting server is using cPanel Version 11.30.3 (build 5). The cron job is set successfully and it is executing the file, but the file failed because of the following error which I recieved on email:

/bin/sh: /home/someuser/public_html/xml_feed/cron_job_wod.py: /usr/bin/python
: bad interpreter: No such file or directory

What I have done so far:

  1. I have placed cron_job_wod.py under public_html/xml_feed/cron_job_wod.py with all permission 777 code
  2. I have added this #!/usr/bin/python at top of my script
  3. I have added appache handler called cgi-script with extensions .cgi .py .pl

…but still the script is not working. How could I get the right path of the Python interpreter? or what is the solution for this problem? Please help!

  • 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-25T13:55:44+00:00Added an answer on May 25, 2026 at 1:55 pm

    Note that in the error message, there is a line break after /usr/bin/python and before the : that clarifies the message. This suggests that the operating system is seeking the file not at /usr/bin/python but at /usr/bin/python<newline>.

    Most likely, you copied the python file from a Windows system which has a style of linebreaks that /bin/sh is not expecting to see in your script.

    You can solve this problem by converting the Windows-style newlines in the python script file with the following command.

    dos2unix /home/someuser/public_html/xml_feed/cron_job_wod.py
    

    If dos2unix is not available on your system, here are a list of alternative methods that effect the same change.

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

Sidebar

Related Questions

need ask you about some help. I have web app running in Net 2.0.
This is incredibly urgent, I need to present this application in 3 and a
This is a bit urgent! I'm trying to make a simple filter search where-by
Need a little help with string formatting... I have a string like this: Bmw
This question is asked out of curiousity rather than any urgent need. I found
I know this question has already been asked but I am in urgent need
This is really urgent. I need to add a conditional stylesheet for IE6. However,
I need urgent help, after googling a lot since last 3-4 weeks. I only
This is not an urgent need but more of a curiosity I have had
I'm in urgent need of an Objective-C/Cocoa/Cocoa Touch framework to handle simple charting; pie

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.