Re: Help need with subprocess communicate

2008-06-03 Thread rdabane
On Jun 3, 11:23 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 3 Jun 2008 18:04:40 -0700 (PDT), [EMAIL PROTECTED] declaimed the > following in comp.lang.python: > > > > > Hi Daniel, > > Thanks for your reply.. > > I've done exactly as you suggested...but I'm still having problem with >

Re: How to perform a nonblocking read from a process

2008-06-03 Thread rdabane
On Jun 3, 7:53 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On Jun 4, 3:20 am, [EMAIL PROTECTED] wrote: > > > It seems that stdout.readline() is a blocking read and it just gets > > stuck their.. > > How to fix this .. > > Threads are the simplest remedy for blocking i/o. > Threads are the simp

How to perform a nonblocking read from a process

2008-06-03 Thread rdabane
Hi, I'm trying to perform following operation from inside the python script 1. Open a shell ( start a process ) 2. Send command1 to the process 3. Get output from the process 4. Send command2 to the process 5. Get output from the process .. Following is sample code : from subprocess import *

Re: Help need with subprocess communicate

2008-06-03 Thread rdabane
On Jun 3, 5:42 pm, Daniel Klein <[EMAIL PROTECTED]> wrote: > On Tue, 3 Jun 2008 14:04:10 -0700 (PDT), [EMAIL PROTECTED] wrote: > >I'm trying to perform following type of operation from inside a python > >script. > >1. Open an application shell (basically a tcl ) > >2. Run some commands on that shel

Help need with subprocess communicate

2008-06-03 Thread rdabane
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command 3. Close the shell I could do it using communicate if I concatenate all my commands ( separated by new

help needed in subprocess communicate

2008-06-03 Thread rdabane
I'm trying to perform following type of operation from inside a python script. 1. Open an application shell (basically a tcl ) 2. Run some commands on that shell and get outputs from each command 3. Close the shell I could do it using communicate if I concatenate all my commands ( separated by ne