1件ヒット
[1-1件を表示]
(0.170秒)
ライブラリ
- shell (1)
検索結果
-
Shell
# transact { . . . } -> object (346.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}...