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

2012-02-22 Thread Philippe May
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

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

2012-02-21 Thread Nikunj.Badjatya
@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&

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

2012-02-21 Thread Nikunj.Badjatya
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.

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

2012-02-21 Thread Nikunj.Badjatya
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