るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. ipaddr to_i

ライブラリ

クラス

モジュール

キーワード

検索結果

Process::Status#exitstatus -> Integer | nil (24301.0)

exited? が真の場合プロセスが返した終了ステータスの整数を、そ うでない場合は nil を返します。

...exited? が真の場合プロセスが返した終了ステータスの整数を、そ
うでない場合は nil を返します。...

static VALUE localjump_exitstatus(VALUE exc) (18400.0)

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

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

...l.#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, Kernel...

Kernel$$? -> Process::Status | nil (3206.0)

このスレッドで最後に終了した子プロセスのステータスです。

...了した子プロセスのステータスです。

Process::Status オブジェクトが入っています。
子プロセスの終了時ステータスは Process::Status#exitstatus で得られます。

この変数はスレッドローカルで読み取り専用です。

@see Process.#wait...
...のステータスです。

Process::Status オブジェクトが入っています。
子プロセスの終了時ステータスは Process::Status#exitstatus で得られます。

この変数はスレッドローカルで読み取り専用です。

@see Process.#wait
@see Process.last_status...