Linux 应用程序里面调用Shell
在Linux的应用程序里面调用我的shell(这玩意功能实在太强大)的办法有很多种一般来说有fork()、exec*()、pipe、system()其中又以system()调用很少方便,现在加以说明。#include#includeint main(){ system(“ifconfig eth0 10.17.28.1”);//system(“./ifconfig.sh”);使用你的脚本shell路径要注意 return 0;}//------------...