1084件ヒット
[1-100件を表示]
(0.047秒)
ライブラリ
- ビルトイン (504)
- fcntl (48)
-
irb
/ cmd / chws (24) -
irb
/ cmd / help (12) -
irb
/ cmd / load (36) -
irb
/ cmd / nop (24) -
irb
/ cmd / pushws (36) -
irb
/ cmd / subirb (48) - mkmf (12)
- pathname (24)
- rake (12)
- rbconfig (12)
-
rubygems
/ command (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ defaults (12) -
rubygems
/ installer (24) -
rubygems
/ specification (48) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ process-controller (6) -
webrick
/ utils (12)
クラス
- BasicObject (36)
- File (24)
-
File
:: Stat (24) -
Gem
:: Command (12) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Installer (24) -
Gem
:: Specification (48) - IO (120)
-
IRB
:: ExtendCommand :: ChangeWorkspace (12) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (12) -
IRB
:: ExtendCommand :: Foreground (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) -
IRB
:: ExtendCommand :: Jobs (12) -
IRB
:: ExtendCommand :: Kill (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Nop (24) -
IRB
:: ExtendCommand :: PopWorkspace (12) -
IRB
:: ExtendCommand :: PushWorkspace (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) -
IRB
:: ExtendCommand :: Workspaces (12) - Module (24)
- Pathname (24)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: ProcessController (6) - String (84)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
FD
_ CLOEXEC (12) -
F
_ DUPFD (12) -
F
_ GETFD (12) -
F
_ SETFD (12) -
MAKEFILE
_ CONFIG (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyの起動 (12)
- []= (84)
- ` (12)
-
add
_ bindir (12) -
class
_ exec (12) -
close
_ on _ exec= (12) -
close
_ on _ exec? (12) -
default
_ exec _ format (12) -
default
_ executable (12) -
exec
_ format (12) - executable (12)
- executable? (66)
-
executable
_ real? (66) - executables (12)
- execute (216)
-
find
_ executable (12) -
instance
_ eval (24) -
instance
_ exec (12) -
module
_ exec (12) - new (12)
- popen (96)
-
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / install _ command (12) -
set
_ close _ on _ exec (12) - sh (12)
- spawn (48)
- system (48)
-
wait
_ all _ jobs _ execution (6) - セキュリティモデル (12)
- 多言語化 (12)
検索結果
先頭5件
-
Kernel
. # exec(env , program , *args , options={}) -> () (18223.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={}) -> () (18223.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) -> () (18219.0) -
カレントプロセスを与えられた外部コマンドで置き換えます。
...す。
そうでない場合、command は exec(2) を使用して実行されるので元の
プログラムからいくつかの環境を引き継ぎます。
@param command 実行する外部コマンド。
@param args command に渡す引数。
exec "echo *" # echoes list of files in... -
Kernel
. # exec(command , options={}) -> () (18213.0) -
引数で指定されたコマンドを実行します。
...rno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のようになります。
$ ruby a.rb
実行前... -
Kernel
. # exec(env , command , options={}) -> () (18213.0) -
引数で指定されたコマンドを実行します。
...rno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のようになります。
$ ruby a.rb
実行前... -
IO
# close _ on _ exec? -> bool (6285.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=... -
Fcntl
:: FD _ CLOEXEC -> Integer (6248.0) -
close-on-exec フラグの値です。
...close-on-exec フラグの値です。... -
BasicObject
# instance _ exec(*args) {|*vars| . . . } -> object (6219.0) -
与えられたブロックをレシーバのコンテキストで実行します。
...タに渡す値です。
//emlist[例][ruby]{
class KlassWithSecret
def initialize
@secret = 99
end
end
k = KlassWithSecret.new
# 以下で x には 5 が渡される
k.instance_exec(5) {|x| @secret + x } #=> 104
//}
@see Module#class_exec, Module#module_exec, BasicObject#instance_eval... -
WEBrick
:: Utils . # set _ close _ on _ exec(io) -> () (6217.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)...