Dakshina`s BlogMy views.. |
|
Friday Dec 01, 2006
Getting the output of a shell command from a C program using popen
Sometimes its necessary to access the output of a shell command(more than just the return value) in a C program. One way could be to redirect it to a file and then access it .The other would be by using the popen function. #include<stdio.h> main(){ Posted at 10:52AM Dec 01, 2006 by dakshina in Sun | Comments[0] Comments:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||