2011-01-24 130 views

回答

0

您可能要使用类似exec or execv的电话。如果包含“unistd.h”,它们可用。有关它们如何工作的更多信息,请查看有关man execlook here的可执行文件的手册页:

系统也可以使用。像 -

#include <stdlib.h> 
int main() { 
system("ls -l"); 
printf("This is a directory list..."); 
} 

you can use iftop command to find network stats in linux.