PDA

View Full Version : How to execute external program inside app and return program's output ...



rdzurney
October 26th, 2012, 08:08 PM
Inside of an application, I'm trying to execute a shell app and then get the output from that shell app back into my application (not the return value of the shell app). The "system" call does not seem to do this and I can't use exec. Thanks in advance for all replies.

spjackson
October 26th, 2012, 08:20 PM
I don't know what language you are using for your application, but for many languages, popen might be what you want.

rdzurney
October 29th, 2012, 04:48 PM
Thanks for the info. Looks like that's what I need.