996件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (462)
- fcntl (44)
-
irb
/ cmd / chws (22) -
irb
/ cmd / help (11) -
irb
/ cmd / load (33) -
irb
/ cmd / nop (22) -
irb
/ cmd / pushws (33) -
irb
/ cmd / subirb (44) - mkmf (11)
- pathname (22)
- rake (11)
- rbconfig (11)
-
rubygems
/ command (11) -
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ defaults (11) -
rubygems
/ installer (22) -
rubygems
/ specification (44) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ process-controller (6) -
webrick
/ utils (11)
クラス
- BasicObject (33)
- File (22)
-
File
:: Stat (22) -
Gem
:: Command (11) -
Gem
:: Commands :: BuildCommand (11) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Installer (22) -
Gem
:: Specification (44) - IO (110)
-
IRB
:: ExtendCommand :: ChangeWorkspace (11) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (11) -
IRB
:: ExtendCommand :: Foreground (11) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: ExtendCommand :: IrbCommand (11) -
IRB
:: ExtendCommand :: Jobs (11) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Nop (22) -
IRB
:: ExtendCommand :: PopWorkspace (11) -
IRB
:: ExtendCommand :: PushWorkspace (11) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: ExtendCommand :: Workspaces (11) - Module (22)
- Pathname (22)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: ProcessController (6) - String (77)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
FD
_ CLOEXEC (11) -
F
_ DUPFD (11) -
F
_ GETFD (11) -
F
_ SETFD (11) -
MAKEFILE
_ CONFIG (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (3) - Rubyの起動 (11)
- []= (77)
- ` (11)
-
add
_ bindir (11) -
class
_ exec (11) -
close
_ on _ exec= (11) -
close
_ on _ exec? (11) -
default
_ exec _ format (11) -
default
_ executable (11) -
exec
_ format (11) - executable (11)
- executable? (62)
-
executable
_ real? (62) - executables (11)
- execute (198)
-
find
_ executable (11) -
instance
_ eval (22) -
instance
_ exec (11) -
module
_ exec (11) - new (11)
- popen (88)
-
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / install _ command (11) -
set
_ close _ on _ exec (11) - sh (11)
- spawn (44)
- system (44)
-
wait
_ all _ jobs _ execution (6) - セキュリティモデル (11)
- 多言語化 (11)
検索結果
先頭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)... -
Module
# class _ exec(*args) {|*vars| . . . } -> object (6208.0) -
与えられたブロックを指定された args を引数としてモジュールのコンテキストで評価します。
...コープになります。
@param args ブロックに渡す引数を指定します。
//emlist[例][ruby]{
class Thing
end
c = 1
Thing.class_exec{
def hello()
"Hello there!"
end
define_method(:foo) do # ローカル変数がブロックの外側を参照している
c
end...