LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Capturing standard output from external program (https://www.linuxquestions.org/questions/linux-software-2/capturing-standard-output-from-external-program-45035/)

brianvdc 02-12-2003 12:14 AM

Capturing standard output from external program
 
I am writing a C++ program that needs to spawn an external executable (/usr/sbin/pppd). I then need to somehow attach to this executable and capture the standard output of the program. I can use any API to execute the binary (.i.e. system(), exec(), etc..)

Mara 02-12-2003 03:20 AM

Do you need only the exit code or something more?


All times are GMT -5. The time now is 01:38 AM.