subprocess.Popen and replacing the shell pipe line

jepler at unpythonic.net jepler at unpythonic.net
Thu Sep 22 19:14:21 EDT 2005


Probably the quoting of the argument to grep.
try this instead:
> p1 = Popen(['grep', 'Sep 22', '/var/log/auth.log'], stdout=PIPE)
etc

Jeff



More information about the Python-list mailing list