CTRL+C异常捕获

倚然君

关注

阅读 123

2022-07-13


CTRL+C异常捕获

trap ‘onCtrlC’ INT
function onCtrlC () {
echo ‘Ctrl+C is captured’
echo ‘Program exit exceptionally ,You can rerun the script!’
exit 1
}


相关推荐

精彩评论(0)

0 0 举报