摘要:
shell中trap捕捉到信号的处理查看信息号 trap -lkill -lman 7 signal 一、三种处理方式 1、执行一段程序来处理这一信号 trap 'commands' signal-list trap "commands" signal-list 2、接受信号的默认操作 trap s 阅读全文
摘要:
Linux 调试方式 1、通过echo命令输出变量以及执行结果 $? 2、通过选项 -n :检查脚本是否有语法错误 sh -n script -v : 打印读入shell的输入行 sh -v script -x :执行命令之前打印命令 sh -x script #!/bin/bash -x 执行方法 阅读全文