shell--内建命令--exec
2016-03-24 10:31
756 查看
1man exec
exec [-cl] [-a name] [command [arguments]] If command is specified, it replaces the shell. No new process is created. The arguments become the arguments to command. If the -l option is supplied, the shell places a dash at the beginning of the zeroth argument passed to command. This is what login(1) does. The -c option causes command to be executed with an empty environment. If -a is supplied, the shell passes name as the zeroth argument to the executed command. If command cannot be executed for some reason, a non-interactive shell exits, unless the shell option execfail is enabled, in which case it returns failure. An interactive shell returns failure if the file cannot be executed. If command is not specified, any redirections take effect in the current shell, and the return status is 0. If there is a redirection error, the return status is 1.
相关文章推荐
- Linux shell 变量 数学 运算
- Bash空格的那点事
- 常用的shell脚本
- [Android] 为Android安装BusyBox —— 完整的bash shell
- shell 命令学习
- shell 随机从文件中抽取若干行的实现方法
- 关于shell的几个不为人知却十分有用的命令分享
- hadoop常用shell脚本总结
- shell学习(一)hello world
- -bash: ssh: command not found的解决办法
- windwos Power shell 查询组员
- Shell glob
- python(6)-执行shell命令
- 【shell编程基础1】shell变量篇
- CentOS6.5下通过Shell修改MySQL初始密码,开启远程登录,授权远程登录用户
- linux shell 统计不同类型文件数目
- shell入门
- Impala 2、Impala Shell 和 Impala SQL
- Shell Script Tutorials (0 ~ 62)
- 常用shell笔记