On Saturday, September 7, 2013 9:47:47 AM UTC-6, Nobody wrote:
> On Sat, 07 Sep 2013 03:55:02 -0700, larry.mart...@gmail.com wrote:
>
>
>
> > I have a python script and when I run it directly from the command line
>
> > it runs to completion. But I need to run it from another script. I do
>
>
On Saturday, September 7, 2013 5:19:25 AM UTC-6, Peter Otten wrote:
> larry.mart...@gmail.com wrote:
>
>
>
> > I have a python script and when I run it directly from the command line it
>
> > runs to completion. But I need to run it from another script. I do that
>
> > like this:
>
> >
>
>
On Sat, 07 Sep 2013 03:55:02 -0700, larry.mart...@gmail.com wrote:
> I have a python script and when I run it directly from the command line
> it runs to completion. But I need to run it from another script. I do
> that like this:
>
> p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subp
larry.mart...@gmail.com wrote:
> I have a python script and when I run it directly from the command line it
> runs to completion. But I need to run it from another script. I do that
> like this:
>
> p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
> stderr=subprocess.STDOUT) rv = p.wait()
> out_
I have a python script and when I run it directly from the command line it runs
to completion. But I need to run it from another script. I do that like this:
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
rv = p.wait()
out_buf = p.stdout.read()
When I do this, wait n