摘要: 我们在执行shell命令比如cat /etc/group | grep root的时候,通过管道的机制将cat /etc/group的结果传递给grep root,然后将结果显示出来 linux中提供了popen和pclose函数来达到这个目的。 FILE *popen(const char *co 阅读全文
posted @ 2018-10-20 16:22 red_leaf_412 阅读(653) 评论(0) 推荐(0) 编辑