Shell Exit command
来源:互联网 发布:手机电子书阅读器软件 编辑:程序博客网 时间:2024/05/22 03:23
Shell Exit command
几个参考
https://bash.cyberciti.biz/guide/Exit_command
http://tldp.org/LDP/abs/html/exit-status.html
exit N
命令用于退出当前脚本,并返回一个状态码,标志脚本运行结果- 若只有
exit
,将返回上一个命令运行结果状态,相当于exit $?
- 非0返回一般表示脚本运行不成功,可以表示为对应的错误码,状态码范围(0~255)
- 执行完一个命令一个函数或脚本后可通过
$?
获取exit status
如何运用exit code
http://bencane.com/2014/09/02/understanding-exit-codes-and-how-to-use-them-in-bash-scripts/
预置的exit code
http://www.tldp.org/LDP/abs/html/exitcodes.html
0 0
- Shell Exit command
- command shell(flume command)
- shell command
- Bourne shell exit code
- SHELL & 和exit
- shell || exit 1
- linux shell exit 值
- Linux-shell exit code
- exit properly shell script
- shell中的exit 1 && exit 0
- linker command failed with exit code 1
- linker command failed with exit code 1
- linker command failed with exit code 1
- linker command failed with exit code 1
- linker command failed with exit code
- linker command failed with exit code 1
- linker command failed with exit code 1
- iOS 打包错误 command..exit code 127...
- PhpStorm的常用快捷键
- C语言学习-分支结构 (简单明了)
- layer弹窗iframe页面,关闭弹窗方法导致form表单无法提交到服务器
- overflow滚动条样式调整
- 两朵飘动的小云
- Shell Exit command
- poj 1064 cable master
- ActionListener KeyListener
- java 变量与常量
- 支付,流程
- webGL第八课-绘制一个三维图形
- Linux 七个运行级别
- 使用元数据设计测试用例
- Ubuntu16.04编译6.0系统并使用ANdroid studio查看源码