Getting a process's output

Discussion in 'Python' started by Dietrich Epp, Jan 19, 2004.

  1. Dietrich Epp

    Dietrich Epp Guest

    Is there any easy way to get all the output of a process? Ideally, the
    function takes parameters like exec(), calls fork(), wait()s for the
    process to complete, and returns the process's stdout, stderr, and exit
    status. By stdout and stderr I don't mean file objects or
    descriptors... I mean strings containing the entire output.

    I would try to do it myself, but I'm not sure how to interleave the
    operations.
    Dietrich Epp, Jan 19, 2004
    #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. Rithesh Pai
    Replies:
    1
    Views:
    5,596
  2. walala
    Replies:
    3
    Views:
    735
    Allan Herriman
    Sep 9, 2003
  3. rtm
    Replies:
    0
    Views:
    797
  4. Joe Van Dyk
    Replies:
    6
    Views:
    172
    Csaba Henk
    Apr 2, 2005
  5. Hunt Jon
    Replies:
    2
    Views:
    107
    Phlip
    Dec 18, 2008
Loading...

Share This Page