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


Groups > comp.lang.python > #98658 > unrolled thread

Re: Using subprocess to capture a progress line

Started byTim Johnson <tim@akwebsoft.com>
First post2015-11-11 09:52 -0900
Last post2015-11-11 09:52 -0900
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#98658 — Re: Using subprocess to capture a progress line

FromTim Johnson <tim@akwebsoft.com>
Date2015-11-11 09:52 -0900
SubjectRe: Using subprocess to capture a progress line
Message-ID<mailman.249.1447267942.16136.python-list@python.org>
* 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web