306件ヒット
[301-306件を表示]
(0.177秒)
ライブラリ
- ビルトイン (138)
-
irb
/ cmd / help (12) -
irb
/ context (12) -
irb
/ extend-command (12) - monitor (60)
- optparse (36)
- pty (12)
- rake (12)
- win32ole (12)
クラス
- Fiber (18)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) - LocalJumpError (12)
- Monitor (36)
- OptionParser (36)
-
PTY
:: ChildExited (12) -
Process
:: Status (48) - SystemExit (12)
- Thread (48)
- WIN32OLE (12)
モジュール
- FileUtils (12)
-
IRB
:: ExtendCommandBundle (12) - MonitorMixin (24)
検索結果
-
FileUtils
# sh(*cmd) {|result , status| . . . } (3207.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.exitstatus......})"
end
end
@see Kernel.#exec, Kernel.#system...