るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.015秒)
トップページ > バージョン:2.4.0[x] > クエリ:Array[x] > クエリ:at[x] > ライブラリ:open3[x]

別のキーワード

  1. array fill
  2. array []
  3. array sample
  4. array []=
  5. array new

モジュール

検索結果

Open3.#pipeline(*cmds) -> [Process::Status] (325.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。

...require "open3"

fname = "/usr/share/man/man1/ruby.1.gz"
p Open3.pipeline(["zcat", fname], "nroff -man", "less")
#=> [#<Process::Status: pid 11817 exit 0>,
# #<Process::Status: pid 11820 exit 0>,
# #<Process::Status: pid 11828 exit 0>]

例2:

require "open3"

Open3
.pipeline(...
...[{"LANG"=>"C"}, "env"], ["grep", "LANG"], "less")

@see Open3.#popen3...