{"blog_url":"https://gom.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/gom68/","description":"\u30d7\u30ed\u30b0\u30e9\u30e0\u3092daemon\u3067\u52d5\u4f5c\u3055\u305b\u305f\u6642\u306e\u30ed\u30b0\u51fa\u529b\u304c\u3067\u304d\u306a\u3044\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30ab\u30ec\u30f3\u30c8\u306b\u3042\u308b'test.log'\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u3068\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 def daemon &bl exit!(0) if fork Process.setsid exit!(0) if fork Dir::chdir(\"/\") File.umask(0) STDIN.reopen \"/dev/null\" STDOUT.reopen \"/dev/null\" STDERR.reopen \"/dev/null\" yield if block_given? end daemon { loop { File.o\u2026","published":"2008-12-25 01:06:11","categories":["ruby"],"provider_name":"Hatena Blog","height":"190","version":"1.0","url":"https://gom.hatenablog.com/entry/20081225/1230221171","type":"rich","width":"100%","blog_title":"gom68\u306e\u65e5\u8a18","title":"Daemon\u52d5\u4f5c\u6642\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3068\u6a19\u6e96\u51fa\u529b","provider_url":"https://hatena.blog","author_name":"gom68","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgom.hatenablog.com%2Fentry%2F20081225%2F1230221171\" title=\"Daemon\u52d5\u4f5c\u6642\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3068\u6a19\u6e96\u51fa\u529b - gom68\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null}