title: Try to grep with Python subprocess including quote cant find the result
body: <p>I have one file <code>/tmp/test.txt</code></p>
  
  <pre><code>this is test
  that is test
  </code></pre>
  
  <p>When I run </p>
  
  <pre><code>[test@localhost]# grep "this is" /tmp/test.txt 
  this is test
  </code></pre>
  
  <p>I got the output.</p>
  
  <p>When I try to run same command with <a href="http://docs.python.org/library/subprocess.html" rel="nofollow noreferrer">subprocess</a> I didn't get the output. It also return the code <code>1</code>.</p>
  
  <pre><code>import subprocess
  p = subprocess.Popen(['grep', '"this is"', '/tmp/test.txt'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  
  print p.communicate ()
  ('', '')
  
  # Command exit code.
  print p.poll()
  1
  </code></pre>
  
  <p>I also check the answers <a href="https://stackoverflow.com/questions/7956865/python-subprocess-grep">Python Subprocess Grep</a> in this and tried <code>shell=True</code> but its not working.</p>
  
  <p>I am missing to place something in subprocess to get the output, but what I dont know :(.</p>