<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xibbar</author_name>
  <author_url>https://blog.hatena.ne.jp/xibbar/</author_url>
  <blog_title>福島餃子Ruby親方</blog_title>
  <blog_url>https://xibbar.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>C言語</anon>
  </categories>
  <description>とりあえず、現状で必要なのはgzip圧縮されたデータを受信して、展開したいだけ。 あっさりzlibライブラリで解決するかと思いきや、 zlibを読んだ感じでは、gzipはファイル化しなけりゃならないっぽい。 ファイル化とか面倒だと思ってgunzip -cに吸い込ませた結果を 読みこめばいいかとRubyのOpen3感覚で思っていたらハマってしまった。 とりあえず、やりたかったことをRubyで書いた。 gzipdata = open(ARGV[0], &quot;rb&quot;).read # やりたいことは、gzip圧縮されたデータを展開したいだけ pipe = IO.popen(&quot;gunzip -c&quot;, &quot;r+…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxibbar.hatenablog.com%2Fentry%2F2015%2F08%2F23%2F224155&quot; title=&quot; C言語の外部コマンドへの入出力がよくわからない - 福島餃子Ruby親方&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-08-23 22:41:55</published>
  <title> C言語の外部コマンドへの入出力がよくわからない</title>
  <type>rich</type>
  <url>https://xibbar.hatenablog.com/entry/2015/08/23/224155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
