るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.046秒)
トップページ > クエリ:File.stat[x] > クエリ:gid[x] > クエリ:mode[x] > クエリ:blocks[x] > クエリ:file?[x] > ライブラリ:rake[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. fileutils copy_file
  4. fileutils remove_file
  5. pathname file?

モジュール

キーワード

検索結果

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

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

...参照してください。


例:
sh %{ls -ltr}

sh 'ls', 'file with spaces'

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

@see Kernel.#exec, Kernel.#system...

FileUtils#ruby(*args) {|result, status| ... } (3102.0)

与えられた引数で Ruby インタプリタを実行します。

与えられた引数で Ruby インタプリタを実行します。

@param args Ruby インタプリタに与える引数を指定します。

例:
ruby %{-pe '$_.upcase!' <README}

@see Kernel.#sh