るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. _builtin notimplementederror
  2. notimplementederror _builtin
  3. gets notimplementederror
  4. fcntl notimplementederror
  5. print notimplementederror

ライブラリ

検索結果

Process.#setproctitle(title) -> String (54343.0)

ps(1) が出力する現在実行中の Ruby スクリプトの名前を引数 title で指定した文字列に変更します。

...
りません。

Process
.setproctitle('myapp: worker #%d' % worker_id)

本メソッドは 2.1 以降でグローバル変数を用いないで現在実行中の Ruby スク
リプトの名前を表す文字列を設定する手段として提供されました。

@see Process.#argv0, $0...