{"url":"https://atsuoishimoto.hatenablog.com/entry/20110330/1301455424","image_url":null,"version":"1.0","published":"2011-03-30 12:23:44","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110330%2F1301455424\" title=\"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e12) \u7b2c12\u7ae0 \u9ad8\u5ea6\u306a\u5165\u51fa\u529b - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e12) \u7b2c12\u7ae0 \u9ad8\u5ea6\u306a\u5165\u51fa\u529b","blog_title":"atsuoishimoto's diary","blog_url":"https://atsuoishimoto.hatenablog.com/","width":"100%","categories":["Python","APUE"],"provider_url":"https://hatena.blog","type":"rich","author_name":"atsuoishimoto","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","description":"12.1 \u30d6\u30ed\u30c3\u30af\u3057\u306a\u3044\u5927\u91cf\u306ewrite import os, sys, fcntl buf = sys.stdin.read() print >>sys.stderr, \"read {0} bytes\".format(len(buf)) wrote = 0 fno = sys.stdout.fileno() val = fcntl.fcntl(fno, fcntl.F_GETFL, 0) fcntl.fcntl(fno, fcntl.F_SETFL, val | os.O_NONBLOCK) # set nonblocking while True: try: n = os.write(fn\u2026","provider_name":"Hatena Blog"}