るりまサーチ

最速Rubyリファレンスマニュアル検索!
1205件ヒット [1201-1205件を表示] (0.023秒)
トップページ > クエリ:output[x]

別のキーワード

  1. readline output=
  2. prettyprint output
  3. irb/output-method print
  4. win32ole output?
  5. rake tty_output=

ライブラリ

モジュール

検索結果

<< < ... 11 12 13 >>

IO.popen(env = {}, command, mode = "r", opt={}) {|f| ... } -> object (4.0)

サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

サブプロセスを実行し、そのプロセスの標準入出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。

p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"

サブプロセスを指定する方法は2通りあります。文字列を指定する場合と配列を指定する場合です。
文字列の場合は、シェルを経由して子プロセスを実行し、
配列の場合は、シェルを経由せずに子プロセスを実行します。

...
<< < ... 11 12 13 >>