title: python os.system() not running with my permissions?
body: <p>I am trying to grep through a file using <code>os.system("grep 'regex' /path/to/file.log")</code>. I know the regex is correct, and the command works when run from the shell, but once I try running the script I get the following error:</p>
  
  <pre><code>sh: /path/to/file.log: Permission denied
  </code></pre>
  
  <p>Is the os module not running with my permissions? Also, is there a better way to do this? I need to find specific lines in a 40,000+ line file.</p>
  
  <p>THANKS!</p>