0787786 (ワッチョイ 2e80-2I1n)垢版 | 大砲2018/02/08(木) 03:57:59.54ID:31uXy/SD0 >>779-780 Rubyではパイプラインで、サブプロセスを実行し、結果を受け取れる。 これで、サイトのHTML が取れる resText = "" IO.popen("curl サイトのURL") { |io| resText = io.read } puts "終了ステータス : #{$?}", resText