exec系列函数
2013-09-26 09:02
211 查看
int execl (const char *path,
const char *arg,
...);
int execlp (const char *file,
const char *arg,
...);
Running a New Process | 131
int execle (const char *path,
const char *arg,
...,
char * const envp[]);
int execv (const char *path, char *const argv[]);
int execvp (const char *file, char *const argv[]);
int execve (const char *filename,
char *const argv[],
char *const envp[]);
The mnemonics are simple. The l and v delineate whether the arguments are provided
via a list or an array (vector). The p denotes that the user’s full path is searched for the
given file. Commands using the p variants can specify just a filename, so long as it is
located in the user’s path. Finally, the e notes that a new environment is also supplied
for the new process. Curiously, although there is no technical reason for the omission,
the exec family contains no member that both searches the path and takes a new environment.
This is probably because the p variants were implemented for use by shells,
and shell-executed processes generally inherit their environments from the shell.
阅读(558) | 评论(0) | 转发(0) |
0
上一篇:2008 Linux开发者研讨会专题 ppt 下载地址
下一篇:编译linux内核的方法
相关热门文章
Linux 下 Libxml2简单编程...
国庆特惠AGILENT86100B光波仪A...
USB设备驱动程序-USB Gadget D...
国庆特惠CSA8200 CSA8200 CSA...
UIApplication
linux 常见服务端口
【ROOTFS搭建】busybox的httpd...
什么是shell
linux socket的bug??
linux的线程是否受到了保护?...
关于enqueue 的dump 文件帮看...
tar --newer 05/12/2013 这个...
请教nginx代理tomcat作为子目...
LDAP安装 bus error是什么问...
select语句不修改sql,如何优...
给主人留下些什么吧!~~
评论热议
const char *arg,
...);
int execlp (const char *file,
const char *arg,
...);
Running a New Process | 131
int execle (const char *path,
const char *arg,
...,
char * const envp[]);
int execv (const char *path, char *const argv[]);
int execvp (const char *file, char *const argv[]);
int execve (const char *filename,
char *const argv[],
char *const envp[]);
The mnemonics are simple. The l and v delineate whether the arguments are provided
via a list or an array (vector). The p denotes that the user’s full path is searched for the
given file. Commands using the p variants can specify just a filename, so long as it is
located in the user’s path. Finally, the e notes that a new environment is also supplied
for the new process. Curiously, although there is no technical reason for the omission,
the exec family contains no member that both searches the path and takes a new environment.
This is probably because the p variants were implemented for use by shells,
and shell-executed processes generally inherit their environments from the shell.
阅读(558) | 评论(0) | 转发(0) |
0
上一篇:2008 Linux开发者研讨会专题 ppt 下载地址
下一篇:编译linux内核的方法
相关热门文章
Linux 下 Libxml2简单编程...
国庆特惠AGILENT86100B光波仪A...
USB设备驱动程序-USB Gadget D...
国庆特惠CSA8200 CSA8200 CSA...
UIApplication
linux 常见服务端口
【ROOTFS搭建】busybox的httpd...
什么是shell
linux socket的bug??
linux的线程是否受到了保护?...
关于enqueue 的dump 文件帮看...
tar --newer 05/12/2013 这个...
请教nginx代理tomcat作为子目...
LDAP安装 bus error是什么问...
select语句不修改sql,如何优...
给主人留下些什么吧!~~
评论热议
相关文章推荐
- 关于exec系列函数的文件路径问题及延伸
- exec系列函数记忆
- system与exec系列函数对比
- 【经典转载】Linux进程学习系列之六 进程控制函数之exec()函数的学习
- exec系列函数
- linux进程编程-替换进程映-exec系列函数(execl,execlp,execle,execv,execvp)使用
- exec系列函数(execl,execlp,execle,execv,execvp)使用
- 启动新进程(fork和exec系列函数实现)
- exec系列函数使用
- exec系列函数和system函数
- linux系统编程之进程(三):exec系列函数
- exec系列函数(待续)
- exec系列中,各函数对envornment的操作
- exec系列函数(execl,execlp,execle,execv,execvp)的使用介绍
- exec系列函数(execl,execlp,execle,execv,execvp)使用
- fork()和vfork()的区别,signal函数用法,exec()系列函数的用法小结
- linux系统编程之进程(五):exec系列函数(execl,execlp,execle,execv,execvp)使用
- exec系列函数(execl,execlp,execle,execv,execvp)使用
- Linux Fork和exec系列函数
- exec系列函数执行脚本文件