423件ヒット
[1-100件を表示]
(0.037秒)
ライブラリ
- ビルトイン (168)
- fcntl (48)
-
irb
/ cmd / nop (12) - rbconfig (12)
-
rubygems
/ installer (12) -
rubygems
/ specification (84) -
shell
/ process-controller (6) -
webrick
/ utils (12) -
win32
/ registry (12)
クラス
-
Gem
:: Installer (12) -
Gem
:: Specification (84) - IO (24)
-
IRB
:: ExtendCommand :: Nop (12) -
Shell
:: ProcessController (6)
モジュール
- Fcntl (48)
- Kernel (144)
- RbConfig (12)
-
WEBrick
:: Utils (12) -
Win32
:: Registry :: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
FD
_ CLOEXEC (12) -
F
_ DUPFD (12) -
F
_ GETFD (12) -
F
_ SETFD (12) -
KEY
_ EXECUTE (12) -
MAKEFILE
_ CONFIG (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyの起動 (12)
-
add
_ bindir (12) -
close
_ on _ exec= (12) -
close
_ on _ exec? (12) -
default
_ executable (12) -
default
_ executable= (12) - executable (12)
- executable= (12)
- executables (12)
- executables= (12)
- execute (12)
- new (12)
-
rb
_ exec (1) -
rb
_ exec _ err (1) -
rb
_ proc _ exec _ n (1) -
ruby 1
. 8 . 4 feature (12) -
set
_ close _ on _ exec (12) - spawn (48)
- system (48)
-
wait
_ all _ jobs _ execution (6)
検索結果
先頭5件
-
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 実行ファイルを指定します。...