3

C programming, run a command line or program

view full story
linux-howto

http://www.linuxquestions.org – Hello, I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah'). In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this. Cheers, thanks for the help in advanced, Matthew (HowTos)