Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98658

Re: Using subprocess to capture a progress line

From Tim Johnson <tim@akwebsoft.com>
Newsgroups comp.lang.python
Subject Re: Using subprocess to capture a progress line
Date 2015-11-11 09:52 -0900
Organization AkWebsoft
Message-ID <mailman.249.1447267942.16136.python-list@python.org> (permalink)
References <20151110224756.GA1944@mail.akwebsoft.com> <CAMw+j7LZH44RnPXgP4XVDiv62uJ_iFmsEm17QpsmNBSDr=uvJw@mail.gmail.com> <20151111161657.GE1944@mail.akwebsoft.com> <CAMw+j7K2V3xQX-cncfgJgxf9CsODe-Y2hS_A6ZTy7m45P6MVcw@mail.gmail.com>

Show all headers | View raw


* Chris Warrick <kwpolska@gmail.com> [151111 07:54]:
> On 11 November 2015 at 17:16, Tim Johnson <tim@akwebsoft.com> wrote:
> >> (2) [don’t do it] do you need to intercept the lines? If you don’t set
> >> stderr= and stdout=, things will print just fine.
> >   Got to try that before using the module, just for edification.
> 
> At which point your initial code sample will become:
> ###########
>     p = subprocess.Popen(list(args))
> ###########
> 
  Yeah, 'list is redundant.
  Progress is now showing, but I forgot to say that I've lost the
  original intent, and that was to examine each line so that I could
  pull out the title.

  No matter. I'm on the way to make the youtube_dl module working.
  cheers

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Using subprocess to capture a progress line Tim Johnson <tim@akwebsoft.com> - 2015-11-11 09:52 -0900

csiph-web