るりまサーチ

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call?

モジュール

検索結果

<< 1 2 3 ... > >>

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

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

...動に成功した場合、このメソッドからは戻りません。

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

exec
(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます...
...
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。



//emlist[例][ruby]{
# a.rb
exec
['sleep', 'mysleep'], '600'
//}

上記スクリプトを実行すると以下のようになります。

$ ruby a.rb
## sleep してるので...
...替えて以下を実行
$ 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={}) -> () (24223.0)

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

...動に成功した場合、このメソッドからは戻りません。

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

exec
(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます...
...
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。



//emlist[例][ruby]{
# a.rb
exec
['sleep', 'mysleep'], '600'
//}

上記スクリプトを実行すると以下のようになります。

$ ruby a.rb
## sleep してるので...
...替えて以下を実行
$ 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)...

Process.exec(command, *args) -> () (24219.0)

カレントプロセスを与えられた外部コマンドで置き換えます。

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

引数が複数与えられた場合、第 2 引数以降は command に直...
...の場合、command はサブシェル経由で実行されます。
そうでない場合、command は exec(2) を使用して実行されるので元の
プログラムからいくつかの環境を引き継ぎます。

@param command 実行する外部コマンド。

@param args command に渡...
...す引数。

exec
"echo *" # echoes list of files in current directory
# never get here


exec
"echo", "*" # echoes an asterisk
# never get here...

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

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

...== 引数の解釈

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

@param command コマンドを文字列で指...
...o::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。

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

上記のスクリプトを実行すると以下のようになります。

$ ruby a.rb
実行前...

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

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

...== 引数の解釈

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

@param command コマンドを文字列で指...
...o::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。

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

上記のスクリプトを実行すると以下のようになります。

$ ruby a.rb
実行前...

絞り込み条件を変える

int rb_proc_exec_n(int argc, VALUE *argv, const char *prog) (18300.0)

この関数は deprecated です。

...この関数は deprecated です。...

Gem::Commands::BuildCommand#execute -> () (15200.0)

コマンドを実行します。

コマンドを実行します。

Gem::Commands::DependencyCommand#execute -> () (15200.0)

コマンドを実行します。

コマンドを実行します。

IRB::ExtendCommand::IrbCommand#execute(*obj) -> IRB::Irb (15200.0)

新しいサブ irb インタプリタを起動します。

新しいサブ irb インタプリタを起動します。

@param obj 新しいサブ irb インタプリタで self にするオブジェクトを指定
します。省略した場合は irb を起動したときの main オブジェク
トを self にします。

int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s) (12600.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) (12600.0)

この関数は deprecated です。

...この関数は deprecated です。...

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

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

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

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