PIPE stderr

Discussion in 'Python' started by Mathieu Prevot, May 24, 2008.

  1. Hi again,

    I don't have the same ouptput between 1) and 2) ... what's happening ?

    1)
    wget http://www.youtube.com/v/A8bwZf3vXjg -O /dev/null 2> file

    2)
    k = Popen (["wget", "http://www.youtube.com/v/A8bwZf3vXjg", "-O", "/dev/null"],
    stderr=PIPE)
    print k.stderr

    In the case 2) I got:

    open file '<fdopen>', mode 'rb' at 0x5a608>

    and I want what I get in file from 1) ... how to do this ?

    Mathieu
    Mathieu Prevot, May 24, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lee, wonsun
    Replies:
    1
    Views:
    477
    Jack Klein
    Nov 2, 2004
  2. rantingrick
    Replies:
    3
    Views:
    423
    rantingrick
    Feb 1, 2009
  3. Matt Mencel
    Replies:
    1
    Views:
    166
    ara.t.howard
    Jul 7, 2008
  4. Replies:
    1
    Views:
    212
    Ben Morrow
    Jun 2, 2004
  5. Ivan Novick

    pipe for stderr and stdout

    Ivan Novick, Mar 26, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    106
    Ted Zlatanov
    Mar 27, 2008
Loading...

Share This Page