[BangPypers] Using subprocess - Extra '0' on the console

Philippe May phil.nabble at hanjinet.org
Wed Feb 22 19:09:57 CET 2012


I'm not sure what powershell is, but this might help identifying is that zero or whatever comes from the subprocess and handling it as you wish:
{{{
Ret = subprocess.Popen([powershellpath, argslist], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Status = Ret.communicate()
stdout = Ret.stdout.read()
stderr = Ret.stderr.read()
print("stdout:\n%s" % stdout)
print("std err:\n%s" % stderr)
}}}

> Any ideas anyone ? 
> 



More information about the BangPypers mailing list