# cat a.c
#include <stdlib.h>
int main()
{
system("pwd");
}
# pwd
/opt2/foo/execte-shell-by-c
# # gcc a.c && ./a.out
/opt2/foo/execte-shell-by-c
# cat a.c
#include <stdlib.h>
int main()
{
system("pwd");
}
# pwd
/opt2/foo/execte-shell-by-c
# # gcc a.c && ./a.out
/opt2/foo/execte-shell-by-c
本文标题:在C语言中调用Linux Shell命令
本文链接:https://www.haomeiwen.com/subject/ebuwaxtx.html
网友评论