{"blog_url":"https://iww.hateblo.jp/","title":"\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u308b\u306e\u3092\u5f85\u3064\u3002\u3059\u3067\u306b\u51fa\u6765\u3066\u305f\u3089\u5f85\u305f\u306a\u3044\u3002","author_name":"iww","provider_url":"https://hatena.blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","categories":["bash"],"published":"2013-10-21 18:01:44","version":"1.0","width":"100%","image_url":null,"url":"https://iww.hateblo.jp/entry/20131021/inotifywait","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20131021%2Finotifywait\" title=\"\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u308b\u306e\u3092\u5f85\u3064\u3002\u3059\u3067\u306b\u51fa\u6765\u3066\u305f\u3089\u5f85\u305f\u306a\u3044\u3002 - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","description":"inotifywait \u306f\u30a8\u30c3\u30b8\u30c8\u30ea\u30ac\u306a\u306e\u3067\u3001\u5f85\u3061\u59cb\u3081\u308b\u76f4\u524d\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3089\u308c\u308b\u3068\u8a70\u3080\u3002 inotifyfilewait (){ FILENAME=\"$1\" DIRNAME=`dirname $FILENAME`/ while [ ! -f $FILENAME ]; do inotifywait -q -e CREATE -t 1 $DIRNAME >/dev/null done } \u4f7f\u3044\u65b9\uff1a\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u308b\u307e\u3067\u5f85\u3064\u3002\u53d6\u308a\u3053\u307c\u3057\u306f1\u79d2\u3067\u56de\u5fa9\u3002 $ inotifyfilewait hoge.txt","author_url":"https://blog.hatena.ne.jp/iww/","type":"rich","height":"190"}