title: Python: Subprocess "call" function can't find path
body: <p>I have a python program that needs to run a bash command on a server. The program works when I run a bash command in my local directory like this:</p>
  
  <p><code>import subprocess
  from subprocess import call
  call(['bash', 'Script_Test.sh'])</code></p>
  
  <p>However, after SSH'ing to a server and running a similar line of code below with a path on the server to a bash script, I get the error "No such file or directory"</p>
  
  <pre><code>call['bash', path]
  </code></pre>
  
  <p>This doesn't make sense for a number of reasons. I triple checked that the path is correct. I went on Putty, connected to the server on there, and ran a bash command with the same path and it worked, so it can't be the path. I also ran a number of tests to make sure I was SSH'd into the correct server, and I was. I thought there was a security issue on the server with me running bash, so I tried cat instead. Nope, still unable to locate the path.</p>
  
  <p>I'm not super familiar with python subprocesses, so any pointers to anything I'm missing here with "call" would be very helpful.</p>