how to capture the output of a command run throug execl()
hi
I am newbie in linux i am writting a c program under linux enviroment .........my need is to run the ping command through execl() the excat code is
execl("/sbin/ping","ping","-c 4","-q","192.168.0.8",(char *) 0);
now i need to capture the output of the ping command in a file instead of in terminal ........please help me to code it
|