摘要: shell 脚本每一行执行之前的时候,会产生3个违信号,EXIT、ERR、DEBUG. 利用DEBUG可以监控执行的分支及过程。 trap 命令可以捕获指定的信号 trap 'command' signal chmod +x file 保存后 执行结果 before execute line:5 , 阅读全文
posted @ 2017-05-17 09:16 蜗牛码 阅读(127) 评论(0) 推荐(0) 编辑