![]() |
Executing a shell script command!!
Hi to all,
I would like to know how to execute a shell script command in a C program. Let's say the program is as follows: #include <stdio.h> void main() { . . . iptables -F iptables -X . . . } IS this possible? If not, how do i run a shell script from a C program? Warm regards, Visham |
Moved: More suitable in our Programming forum, where programming questions belong.
|
|
yep it just
[quote] #include <stdio.h> void main() { . . . system("iptables -F") system("iptables -X") . . . } |
Thx!!
Hi to all,
Many many thx to microsoft/linux and leonscape... Warm regards, Visham |
| All times are GMT -5. The time now is 12:16 AM. |