るりまサーチ

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

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. thread abort_on_exception
  5. thread abort_on_exception=

検索結果

<< 1 2 3 ... > >>

Kernel.#exec(env, program, *args, options={}) -> () (18223.0)

引数で指定されたコマンドを実行します。

...式では、常に shell を経由せずに実行されます。

exec
(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。...
...am options オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。



//emlist[例][ruby]{
# a.rb
exec
['sle...
...替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep

@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)...

Kernel.#exec(program, *args, options={}) -> () (18223.0)

引数で指定されたコマンドを実行します。

...式では、常に shell を経由せずに実行されます。

exec
(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。...
...am options オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。



//emlist[例][ruby]{
# a.rb
exec
['sle...
...替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep

@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)...

Kernel.#exec(command, options={}) -> () (18213.0)

引数で指定されたコマンドを実行します。

...新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。

//emlist[例][ruby]{
# a.rb
puts '実行前'
exec
'echo "実行中"'
puts '実行後'
//}

上記の...

Kernel.#exec(env, command, options={}) -> () (18213.0)

引数で指定されたコマンドを実行します。

...新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。

//emlist[例][ruby]{
# a.rb
puts '実行前'
exec
'echo "実行中"'
puts '実行後'
//}

上記の...

Shell::ProcessController#wait_all_jobs_execution -> () (15200.0)

全てのジョブの実行が終わるまで待ちます。

全てのジョブの実行が終わるまで待ちます。

絞り込み条件を変える

int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s) (12500.0)

この関数は deprecated です。

この関数は deprecated です。

int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char *errmsg, size_t errmsg_buflen) (12500.0)

この関数は deprecated です。

この関数は deprecated です。

IO#close_on_exec? -> bool (12306.0)

自身に close-on-exec フラグが設定されていた場合 true を返します。 そうでない場合に false を返します。

...close-on-exec フラグが設定されていた場合 true を返します。
そうでない場合に false を返します。

f = open("/dev/null")
f.close_on_exec? #=> true
f.close_on_exec = false
f.close_on_exec? #=> false
f.close_on_exec = true...
...f.close_on_exec? #=> true

@see IO#close_on_exec=...

IO#close_on_exec=(bool) (12276.0)

自身に close-on-exec フラグを設定します。

...se-on-exec フラグを設定します。

このフラグをセットすると exec(2) 時にそのファイルデスクリプタを
close します。

@see fcntl(2)
@param bool 自身の close-on-exec フラグを true か false で指定します。

f = open("/dev/null")
f.close_on_exec =...
...true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
f.closed? #=> false

@see IO#close_on_exec?...

WEBrick::Utils.#set_close_on_exec(io) -> () (12218.0)

指定された io の Fcntl::FD_CLOEXEC を 1 に設定します。 この io は Kernel.#exec などが実行される時に close されるようになります。

...指定された io の Fcntl::FD_CLOEXEC を 1 に設定します。
この io は Kernel.#exec などが実行される時に close されるようになります。

@param io IO オブジェクトを指定します。

@see fcntl(2)...

絞り込み条件を変える

Gem::Specification#default_executable=(executable) (9200.0)

Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。

...Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。

@param executable 実行ファイルを指定します。...
<< 1 2 3 ... > >>