Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-12-2003, 12:14 AM   #1
LQ Newbie
Registered: Feb 2003
Location: Hillsboro, OR
Posts: 13

Rep: Reputation: 0
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..)
Old 02-12-2003, 03:20 AM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you need only the exit code or something more?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
capturing output of 'faad -i'.... bulliver Programming 3 09-18-2005 06:51 PM
capturing sound from external source ankscorek Linux - Hardware 7 12-08-2004 01:55 AM
how to redirecting the standard output in program phil123 Linux - General 3 02-23-2004 12:02 AM
script is capturing output.... wedgeworth Linux - Software 7 10-20-2003 05:11 PM
Capturing from TV card with mplayer, output is at half speed Electrode Linux - Software 2 09-28-2003 12:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration