摘要: 1)execvp execvp(执行文件) 相关函数 fork,execl,execle,execlp,execv,execve 表头文件 ... 阅读全文
posted @ 2011-10-27 15:41 Home of Jason Liu 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: exec函数族包括6个函数: #include int execl(const char *path, const char *arg, ...); int execlp(const char *file, const char *arg, ...); int execle(const char... 阅读全文
posted @ 2011-10-27 14:26 Home of Jason Liu 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 示例程序: getopt.pl; 1 #!/usr/bin/perl -w 2 #use stric... 阅读全文
posted @ 2011-10-27 14:01 Home of Jason Liu 阅读(436) 评论(0) 推荐(0) 编辑
摘要: stat,lstat,fstat1 函数都是获取文件(普通文件,目录,管道,socket,字符,块()的属性。函数原型#include int stat(const char *restrict pathname, struct stat *restrict buf);提供文件名字,获取文件对... 阅读全文
posted @ 2011-10-27 13:31 Home of Jason Liu 阅读(303) 评论(0) 推荐(0) 编辑