title: Python: executing shell script with arguments(variable), but argument is not read in shell script
body: <p>I am trying to execute a shell script(not command) from python:</p>
  
  <pre><code>main.py
  -------
  from subprocess import Popen
  
  Process=Popen(['./childdir/execute.sh',str(var1),str(var2)],shell=True)
  
  execute.sh
  ----------
  
  echo $1 //does not print anything
  echo $2 //does not print anything
  </code></pre>
  
  <p>var1 and var2 are some string that I am using as an input to shell script. Am I missing something or is there another way to do it?</p>
  
  <p>Referred: <a href="https://stackoverflow.com/questions/12605498/how-to-use-subprocess-popen-python">How to use subprocess popen Python</a></p>