摘要: 1、直接上代码 点击查看代码 # cat test_trap.sh #!/bin/bash func(){ echo 'exit abnormal' } trap func SIGINT #SIGINT也可以简写为INT或者信号数字2 sleep 15 echo 'exit normal 2、看看效 阅读全文
posted @ 2022-05-31 23:30 synown 阅读(699) 评论(0) 推荐(0)