linux 学习之管道
摘要:
#include "apue.h"#include <sys/wait.h>#define DEF_PAGER "/bin/more"int main (int argc, char *argv[]){int n;int fd[2];pid_t pid;char *pager, *argv0;char line[MAXLINE];FILE *fp;if (argc !=2)//命令行参数不为2时执行printf{printf("usage:a.out<pathmane>\n");}if ((fp = fopen 阅读全文
posted @ 2012-07-06 15:11 龙沙宝石 阅读(309) 评论(0) 推荐(0) 编辑