るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.080秒)

別のキーワード

  1. rake to_s
  2. rake []
  3. rake new
  4. rake application
  5. rake tasks

ライブラリ

検索結果

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

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

...

@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。


例:
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.exit...

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

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

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

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

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

@see Kernel.#sh...