system() function question
Posted: Sat Nov 08, 2008 6:08 am
I have a script that runs the system() function. I can get the executed command's output in a string that system() returns, which is what I want. But when system() runs I also get the same text on the screen. I'd like to have it only in the string and not see it on the screen. Is there a way to do that? I tried redirecting to /dev/null but that returns empty strings also.
thanks,
William
thanks,
William