[LC++]Executing Shell Commands

James Mclean james at adam.com.au
Fri May 30 13:08:02 UTC 2003

Hi All,

I am beginning to learn C++ after playing with C for a while, and I am
executing some shell commands with the function execl().
I am basically wondering what other functions are available for shell
command calls, because execl() returns an int, and prints the results of
the command to the stdout.
What I need is to put the results of the command into and array or
string, rather than print to stdout.

I have read the execl(3) manpage, but I cannot see any hints in this

What would this function be?


James Mclean

More information about the tuxCPProgramming mailing list