{"published":"2021-11-19 23:58:11","categories":["linux","bash"],"height":"190","version":"1.0","blog_url":"https://shuzo-kino.hateblo.jp/","width":"100%","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2021%2F11%2F19%2F235811\" title=\"pkill\u306fKILL\u4ee5\u5916\u306b\u3082\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308b\u4e8b\u304c\u3067\u304d\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u5b9f\u969b\u306e\u3068\u3053\u308d \u5b9f\u884c\u6a29\u9650\u3092\u3064\u3051\u305f\u3001\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002 $ cat testExit.bash #! /bin/bash COUNT=0 trap \"printf '\\n\\r`basename $0` is closing.'\" EXIT trap \"printf '\\n\\r\u826f\u592b\u3061\u3083\u3093\u30b4\u30cf\u30f3\u306e\u6642\u9593\u30e8\\n'\" 14 while true do COUNT=$((COUNT + 1)) printf \"\\r%07s%3d\" \"\" $COUNT sleep 1 done$ pkill -14 testExit.bash $ pkill -14 testExit.bash $ pkill t\u2026","blog_title":"Bye Bye Moore","author_name":"shuzo_kino","provider_url":"https://hatena.blog","type":"rich","image_url":null,"provider_name":"Hatena Blog","url":"https://shuzo-kino.hateblo.jp/entry/2021/11/19/235811","title":"pkill\u306fKILL\u4ee5\u5916\u306b\u3082\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308b\u4e8b\u304c\u3067\u304d\u308b"}