るりまサーチ

最速Rubyリファレンスマニュアル検索!
102件ヒット [101-102件を表示] (0.052秒)
トップページ > クラス:Shell[x] > ライブラリ:shell[x] > クエリ:shell[x] > クエリ:system[x]

別のキーワード

  1. shell/builtin-command new
  2. etc sc_shell
  3. shell/builtin-command each
  4. shell cd
  5. shell debug=

検索結果

<< < 1 2 >>

Shell#out(dev = STDOUT, &block) -> () (17049.0)

Shell#transact を呼び出しその結果を dev に出力します。

...
Shell
#transact を呼び出しその結果を dev に出力します。

@param dev 出力先をIO オブジェクトなどで指定します。

@param block transact 内部で実行するシェルを指定します。


使用例:
require 'shell'
Shell
.def_system_command("head")
sh = Shell...
....new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system
("ls", "-l") | head("-n 3")
}
}...
<< < 1 2 >>