1件ヒット
[1-1件を表示]
(0.034秒)
クラス
-
Shell
:: Filter (1)
検索結果
-
Shell
:: Filter # to _ s -> String (54631.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...