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.re
@python.org
Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console
No I am not printing anything.
From: Mandar Vaze / मंदार वझे [mailto:mandarv...@gmail.com]
Sent: Tuesday, February 21, 2012 2:55 PM
To: Badjatya, Nikunj
Subject: Re: [BangPypers] Using subprocess - Extra '0&
No I am not printing anything.
From: Mandar Vaze / मंदार वझे [mailto:mandarv...@gmail.com]
Sent: Tuesday, February 21, 2012 2:55 PM
To: Badjatya, Nikunj
Subject: Re: [BangPypers] Using subprocess - Extra '0' on the console
It is possible that this "zero" is return value i.
Hi,
I am using subprocess module to run a powershell script with necessary
arguments.
I also want to wait for this process to be over. The following statements works
fine functionality wise.
Program.py:-
{{{
Ret = Popen([powershellpath, argslist])
Status = Ret.communicate()
}}}
Previously I was