PDA

View Full Version : Creating pipelines between programs



nebu
February 27th, 2009, 06:18 PM
I am writing a C++ program which needs to read the input of some system call i make inside the program......


how do i make a pipe between my c++ program and the system call of my output so that i can use the output of the system call in my c++ program??

geirha
February 27th, 2009, 07:38 PM
You'll want to look at popen (http://manpages.ubuntu.com/manpages/intrepid/en/man3/popen.3.html)

man 3 popen