3件ヒット
[1-3件を表示]
(0.111秒)
検索結果
-
Etc
:: Passwd # shell -> String (63610.0) -
このユーザのログインシェルを返します。
このユーザのログインシェルを返します。 -
Shell
:: Filter # to _ a -> [String] (9379.0) -
実行結果を文字列の配列で返します。
実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a -
Shell
:: Filter # to _ s -> String (9379.0) -
実行結果を文字列で返します。
実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}