title: Python 3: Launching A Bash Script Within A Python Script
body: <p>I've created a TCP client/server which is used to determine if software is up to date and if it's not it calls a bash script to perform the software upgrade. I have got this to work successfully on Windows using the below code and launching the client from Cygwin</p>
  
  <pre><code>subprocess.call("windowsUpgrade.sh", shell=True)
  </code></pre>
  
  <p>However, when I try to use this from a Linux or Mac based client I get the errors</p>
  
  <pre><code>/bin/sh: linuxUpgrade.sh: not found
  </code></pre>
  
  <p>and </p>
  
  <pre><code>/bin/sh: macUpgrade.sh: command not found
  </code></pre>
  
  <p>Any ideas on what causes this issue and how to resolve it? 
  Thanks</p>