Possible Duplicate:
How can I run an external program from C and parse its output?
I want to run a command in linux and get the text returned of what it outputs, but I do not want this text printed to screen. Is there a more elegant way than making a temporary file?