Re: Problem in using subprocess module and communicate()

2011-05-23 Thread Tim Golden
[cc-ing back to the list; please keep the conversation over there...] On 23/05/2011 13:11, vijay swaminathan wrote: What I want to achieve is, I want to run a batch file on a command prompt. The reason for using thread is not for running multiple scripts simultaneously. It is just to monitor my

Re: Problem in using subprocess module and communicate()

2011-05-23 Thread Tim Golden
On 21/05/2011 16:56, vijay swaminathan wrote: I'm having some problem in using the communicate() along with the subprocess.I would like to invoke a command prompt and pass on a .bat file to execute. I went through the subprocess module and understood that using communicate, we can send the send

Re: Problem in using subprocess module and communicate()

2011-05-21 Thread Chris Rebert
On Sat, May 21, 2011 at 8:56 AM, vijay swaminathan wrote: > HiĀ  Gurus, > > I'm having some problem in using the communicate() along with the > subprocess.I would like to invoke a command prompt and passĀ  on a .bat file > to execute. I went through the subprocess module and understood that using >

Problem in using subprocess module and communicate()

2011-05-21 Thread vijay swaminathan
Hi Gurus, I'm having some problem in using the communicate() along with the subprocess.I would like to invoke a command prompt and pass on a .bat file to execute. I went through the subprocess module and understood that using communicate, we can send the send data to stdin. According to the doc