{"title":"timeout\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u5b9a\u6642\u9593\u305f\u3063\u305f\u3089\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b","published":"2021-12-17 23:57:55","provider_url":"https://hatena.blog","width":"100%","blog_title":"Bye Bye Moore","blog_url":"https://shuzo-kino.hateblo.jp/","image_url":null,"version":"1.0","description":"\u3044\u307e\u307e\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306esleep\u3068\u30eb\u30fc\u30d7\u3067\u3076\u3093\u56de\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u2026\u2026coreutil\u306e\u4e2d\u306b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3057\u305f\u2026\u2026 \u5b9f\u969b\u306e\u3068\u3053\u308d $ [[ $( timeout --signal=SIGHUP --kill-after=2s 2s /home/shuzo/testExit.bash > /home/shuzo/log.log ) ]] && echo none$ cat log.log tstHUP$ cat testExit.bash #! /bin/bash function catchHup () { printf HUP } trap \"printf '\\n\\r`basenam\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2021%2F12%2F17%2F235755\" title=\"timeout\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u5b9a\u6642\u9593\u305f\u3063\u305f\u3089\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3059\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>","author_name":"shuzo_kino","height":"190","url":"https://shuzo-kino.hateblo.jp/entry/2021/12/17/235755","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","categories":["bash","linux"],"type":"rich"}