title: Getting error while doing subprocess call using Python and Django
body: <p>I am getting some error while running the <code>.sh</code> script using Python and Django. The errors are given below.</p>
  
  <pre><code>Traceback (most recent call last):
    File "cell.py", line 3, in &lt;module&gt;
      subprocess.call(shlex.split('./test.sh param1 param2'))
    File "/usr/lib/python2.7/subprocess.py", line 522, in call
      return Popen(*popenargs, **kwargs).wait()
    File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
      errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
      raise child_exception
  OSError: [Errno 13] Permission denied
  </code></pre>
  
  <p>I am explaining my code below.</p>
  
  <blockquote>
    <p>cell.py:</p>
  </blockquote>
  
  <pre><code>  import subprocess
  import shlex
  param1='Reactor1'
  param2='Running'
  subprocess.call(shlex.split('bash test.sh',param1,param2))
  </code></pre>
  
  <blockquote>
    <p>test.sh:</p>
  </blockquote>
  
  <pre><code>#!/bin/sh
  echo $1
  echo $2
  exit 0
  </code></pre>
  
  <p>While I was running the file I am getting the above error. Please help me to resolve this error.</p>