c/c++ running a shell script?
I am trying to write a small c/c++ program as a wrapper for a bash script. I need the wrapper to take some input args, call the bash script with the supplied args and then return the output of the bash script.
As far as I can see system() will call the script ok, but it will only return an int , not the actual output of the script, unless I've got that wrong.
Can anyone help me out here?