C++获取服务网络状态linux
答
您可能要使用类似exec or execv
的电话。如果包含“unistd.h”,它们可用。有关它们如何工作的更多信息,请查看有关man exec
或look here的可执行文件的手册页:
系统也可以使用。像 -
#include <stdlib.h>
int main() {
system("ls -l");
printf("This is a directory list...");
}