how to give commands inside program
How to give command inside the C program and hoe to fetch the value. I need the mac address of the system. So, i will give "ifconfig" command and i can able to find the MAC address. I want to give this command inside the program and fetch the MAC address alone.. How to do this..
Anyone help me in this issue... Thanks in advance... |
you can directly call system command like system('cmd') or may be you can use snprintf IO function.
|
Quote:
Code:
FILE *pipe; |
All times are GMT -5. The time now is 08:33 PM. |