question about popen

This is a discussion on question about popen within the Linux Programming forums, part of the Platform Specific Boards category; when I run a program with popen(command, "r"), does it redirect stdout and stderr, or does it only redirect stdout?...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2,348

    question about popen

    when I run a program with popen(command, "r"), does it redirect stdout and stderr, or does it only redirect stdout?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elkvis View Post
    when I run a program with popen(command, "r"), does it redirect stdout and stderr, or does it only redirect stdout?
    Only stdout.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,348
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. popen and fgets, underflow!
    By henrikstolpe in forum Linux Programming
    Replies: 0
    Last Post: 02-06-2009, 02:39 AM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21