title: Running .sh file from Python script?
body: <p>I am having trouble running a <code>.sh</code> script in Oracle Linux 6.8 using a python script I have developed. I've developed these scripts in Windows OS and they run without a problem, now I am trying to modify these scripts to run them on Linux but I am having problems since I am not familiar with Linux OS. </p>
  
  <p>I run a <code>.bat</code> file in Windows using the <code>Popen</code> command in python, for example: 
  <code>p = Popen("StartScript.bat", cwd=r"My path")</code></p>
  
  <p>Where <code>StartScript.bat</code> is the <code>.bat</code> file, and <code>My Path</code> is the path where the <code>.bat</code> file is located. This works very good in Windows OS, but how do I do the same for Linux OS, if I want to run a <code>StartScript.sh</code> file. </p>