View Single Post

   
  #1 (permalink)  
Old 02-20-2008, 10:48 PM
George
 
Posts: n/a
Default slackware linux programming question

Does anyone know how to capture the normal terminal output of a program
called from a 'C' program system() call?

I want to get the output of pstree from within my program.

example: returnval = system("pstree");

How can I capture the output of pstree that would normally show up in
the terminal window?

Thanks
Reply With Quote