* Jerry Hill [130830 07:48]:
> On Fri, Aug 30, 2013 at 11:32 AM, Tim Johnson wrote:
> > The objective is to display all output, but to also separate error
> > messages from normal output.
>
> I still think you want to use communicate(). Like this:
>
> p = subprocess.Popen(args,stderr=subpr
* Nobody [130830 06:55]:
> On Thu, 29 Aug 2013 17:00:21 -0800, Tim Johnson wrote:
>
> > ## This appears to be what works.
> > def __exec(self,args) :
> > """Run the process with arguments"""
> >p =
> >subprocess.Popen(args,stderr=subprocess.PIPE,stdout=subprocess.PIPE)
On Fri, Aug 30, 2013 at 11:32 AM, Tim Johnson wrote:
> The objective is to display all output, but to also separate error
> messages from normal output.
I still think you want to use communicate(). Like this:
p = subprocess.Popen(args,stderr=subprocess.PIPE,stdout=subprocess.PIPE)
output, e
On Thu, 29 Aug 2013 17:00:21 -0800, Tim Johnson wrote:
> ## This appears to be what works.
> def __exec(self,args) :
> """Run the process with arguments"""
>p =
>subprocess.Popen(args,stderr=subprocess.PIPE,stdout=subprocess.PIPE)
>while 1 :
>output
* Tim Johnson [130829 10:51]:
> using Python 2.7.1 on OS X 10.7.5
>
> I'm managing a process of drush using an instance of subprocess.Popen
<...>
## This appears to be what works.
def __exec(self,args) :
"""Run the process with arguments"""
p = subprocess.Popen(args,stderr=su
* MRAB [130829 11:04]:
> On 29/08/2013 19:34, Tim Johnson wrote:
> >could use some examples.
> >
> The subprocess will terminate when it has finished writing its output,
> but because you're not consuming any of the output (you're waiting for
> it to finish), the buffer fills up and blocks the sub
On Thursday 2013 August 29 11:34, Tim Johnson wrote:
> using Python 2.7.1 on OS X 10.7.5
>
> I'm managing a process of drush using an instance of subprocess.Popen
>
> The process has a '--verbose' option. When that option is passed as
> part of the initializer `args' argument, the process will hang
Tim Johnson
> using Python 2.7.1 on OS X 10.7.5
>
> I'm managing a process of drush using an instance of subprocess.Popen
>
> The process has a '--verbose' option. When that option is passed as
> part of the initializer `args' argument, the process will hang.
>
> It should be no surprise as drus
On 29/08/2013 19:34, Tim Johnson wrote:
using Python 2.7.1 on OS X 10.7.5
I'm managing a process of drush using an instance of subprocess.Popen
The process has a '--verbose' option. When that option is passed as
part of the initializer `args' argument, the process will hang.
It should be no su
using Python 2.7.1 on OS X 10.7.5
I'm managing a process of drush using an instance of subprocess.Popen
The process has a '--verbose' option. When that option is passed as
part of the initializer `args' argument, the process will hang.
It should be no surprise as drush output with the --verbose
10 matches
Mail list logo