るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.103秒)
トップページ > クエリ:I[x] > クエリ:after[x] > クエリ:sh[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. _builtin i

ライブラリ

モジュール

検索結果

FileUtils#sh(*cmd) {|result, status| ... } (24125.0)

与えられたコマンドを実行します。

...ernel.#exec を参照してください。


例:
sh
%{ls -ltr}

sh
'ls', 'file with spaces'

# check exit status after command runs
sh
%{grep pattern file} do |ok, res|
i
f ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end

@see Kernel.#exec, Ke...