|
Home > Archive > Unix Programming > January 2006 > Capturing output from other process
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Capturing output from other process
|
|
| John Smith 2006-01-29, 9:32 pm |
| I'm interested in running another application from within my program and
capturing the stdout-output it spits out.
Could anyone direct me which API functions I should be looking into? I'm
interested to get it working under Linux and Mac OS X.
Thanks in advance.
| |
| Pascal Bourguignon 2006-01-29, 9:32 pm |
| "John Smith" <js@x-formation.com> writes:
> I'm interested in running another application from within my program and
> capturing the stdout-output it spits out.
>
> Could anyone direct me which API functions I should be looking into? I'm
> interested to get it working under Linux and Mac OS X.
signal, pipe, fork, dup or dup2, execv or execl, read.
--
__Pascal Bourguignon__ http://www.informatimago.com/
"You cannot really appreciate Dilbert unless you read it in the
original Klingon"
| |
| Barry Margolin 2006-01-29, 9:32 pm |
| In article <87lkx0rp1h.fsf@thalassa.informatimago.com>,
Pascal Bourguignon <spam@mouse-potato.com> wrote:
> "John Smith" <js@x-formation.com> writes:
>
>
> signal, pipe, fork, dup or dup2, execv or execl, read.
Simpler is popen()
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
|
|
|