Running a python script from shell
<p>I want to run a python script from a shell script. I have been able to run it from the "command window" (Cygwin), but now I want to be able to call it from a shell script. It does not work the way I thought it would and the Internet has not really helped me with it.</p>

<p>My code so far:</p>

<pre><code>#!/bin/bash
python Calibrate.py
</code></pre>

<p>I hope someone could help me further. <em>Calibrate</em> just contains a few basic command lines to transform some data that has been read in with an excelreader in the script itself.</p>

<p>Just make sure the python executable is in your PATH environment variable, then add in your script</p>

<p>In the file job.sh,</p>

<p><code>#!/bin/sh
 python &lt;path/to/python/script&gt;/python_script.py</code></p>

<p>Execute this command to make the script runnable for you : <code>chmod u+x job.sh</code>
Run it : <code>./job.sh</code></p>

python shell