るりまサーチ

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

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

種類

モジュール

検索結果

File::Constants::WRONLY -> Integer (26304.0)

書き込みのみのモードでファイルを開くときに指定します。 File.openで使用します。

書き込みのみのモードでファイルを開くときに指定します。
File.openで使用します。

Kernel.#spawn(env, program, *args, options={}) -> Integer (8212.0)

引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。

...ことで環境変数が削除(unsetenv(3))されます。
//emlist[例][ruby]{
# FOO を BAR にして BAZ を削除する
pid = spawn({"FOO"=>"BAR", "BAZ"=>nil}, command)
//}

親プロセスは Process.#waitpid で子プロセスの終了を待ち合わせるか
もしくは Process.#detach で...
...ers=>true)
# FOO だけ
pid = spawn({"FOO"=>"BAR"}, command, :unsetenv_others=>true)
//}

「:pgroup」でプロセスグループを指定できます。
//emlist[][ruby]{
# true, 0 で新しいプロセスグループを作りそのリーダーになります。
pid = spawn(command, :pgroup => tru...
...e)
# 整数を渡すとそのグループに所属します。
pid = spawn(command, :pgroup => 10)
//}

「:rlimit_core」「:rlimit_cpu」などで、resource limit を指定します。
詳しくは Process.#setrlimit を見てください。
このオプションには 整数 or 整数2つの配...

Kernel.#spawn(program, *args) -> Integer (8212.0)

引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。

...ことで環境変数が削除(unsetenv(3))されます。
//emlist[例][ruby]{
# FOO を BAR にして BAZ を削除する
pid = spawn({"FOO"=>"BAR", "BAZ"=>nil}, command)
//}

親プロセスは Process.#waitpid で子プロセスの終了を待ち合わせるか
もしくは Process.#detach で...
...ers=>true)
# FOO だけ
pid = spawn({"FOO"=>"BAR"}, command, :unsetenv_others=>true)
//}

「:pgroup」でプロセスグループを指定できます。
//emlist[][ruby]{
# true, 0 で新しいプロセスグループを作りそのリーダーになります。
pid = spawn(command, :pgroup => tru...
...e)
# 整数を渡すとそのグループに所属します。
pid = spawn(command, :pgroup => 10)
//}

「:rlimit_core」「:rlimit_cpu」などで、resource limit を指定します。
詳しくは Process.#setrlimit を見てください。
このオプションには 整数 or 整数2つの配...

Kernel.#spawn(command, options={}) -> Integer (8207.0)

引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。

...子プロセスのプロセスIDを返します。


=== 引数の解釈

この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行され...

Kernel.#spawn(env, command, options={}) -> Integer (8207.0)

引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。

...子プロセスのプロセスIDを返します。


=== 引数の解釈

この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行され...

絞り込み条件を変える