{"author_name":"kazuokohchi","author_url":"https://blog.hatena.ne.jp/kazuokohchi/","published":"2006-11-21 18:00:40","title":" IO::File\u3067\u306e\u540c\u671f\u5236\u5fa1","categories":["Perl"],"version":"1.0","provider_name":"Hatena Blog","image_url":null,"blog_title":"tail -f /var/log/\u3053\u3046\u3061\u304b\u305a\u304a.log","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkohchi.hatenablog.com%2Fentry%2F20061121%2F1164099640\" title=\" IO::File\u3067\u306e\u540c\u671f\u5236\u5fa1 - tail -f /var/log/\u3053\u3046\u3061\u304b\u305a\u304a.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://kohchi.hatenablog.com/","provider_url":"https://hatena.blog","description":"use IO::File; # \"w\" or \"> $f\" my $fh = IO::File->new($f, O_WRONLY|O_TRUNC|O_CREAT|O_SYNC, 0644) or die \"Can not open $f: $!\\n\"; print $fh .... ; $fh->close; O_SYNC\u306fOS\u306b\u3088\u3063\u3066\u9055\u3046\u304b\u3082\u3057\u308c\u306a\u3044(Linux\u306fO_SYNC\u3002\u3053\u308c\u306fopen(2)\u3092\u53c2\u7167)\u3002","url":"https://kohchi.hatenablog.com/entry/20061121/1164099640","type":"rich","width":"100%"}