るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.119秒)
トップページ > クエリ:t[x] > クエリ:command[x] > モジュール:FileUtils[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle align_size_t

ライブラリ

キーワード

検索結果

FileUtils.commands -> Array (9101.0)

何らかのオプションを持つメソッド名の配列を返します。

...何らかのオプションを持つメソッド名の配列を返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}...

FileUtils#sh(*cmd) {|result, status| ... } (3107.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...