title: need to run python script via cron job using cpanel
body: <p>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 <code>cPanel Version 11.30.3 (build 5)</code>. 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:</p>
  
  <pre><code>/bin/sh: /home/someuser/public_html/xml_feed/cron_job_wod.py: /usr/bin/python
  : bad interpreter: No such file or directory
  </code></pre>
  
  <p>What I have done so far:</p>
  
  <ol>
  <li>I have placed <code>cron_job_wod.py</code> under <code>public_html/xml_feed/cron_job_wod.py</code> with all permission 777 code</li>
  <li>I have added this <code>#!/usr/bin/python</code> at top of my script</li>
  <li>I have added <code>appache handler</code> called <code>cgi-script</code> with extensions <code>.cgi .py .pl</code></li>
  </ol>
  
  <p>...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!</p>