Capturing output from other process
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Capturing output from other process




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Capturing output from other process  
John Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:32 AM

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.









[ Post a follow-up to this message ]



    Re: Capturing output from other process  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:32 AM

"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"





[ Post a follow-up to this message ]



    Re: Capturing output from other process  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:32 AM

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 ***





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:10 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register