別のキーワード
ライブラリ
- ビルトイン (572)
- fcntl (52)
-
irb
/ cmd / chws (26) -
irb
/ cmd / help (13) -
irb
/ cmd / load (39) -
irb
/ cmd / nop (26) -
irb
/ cmd / pushws (39) -
irb
/ cmd / subirb (52) - mkmf (13)
- pathname (26)
- rake (26)
- rbconfig (13)
-
rubygems
/ command (13) -
rubygems
/ commands / build _ command (13) -
rubygems
/ commands / dependency _ command (13) -
rubygems
/ defaults (13) -
rubygems
/ installer (39) -
rubygems
/ specification (91) -
rubygems
/ uninstaller (13) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ process-controller (6) -
webrick
/ utils (13) -
win32
/ registry (13)
クラス
- BasicObject (39)
- File (26)
-
File
:: Stat (26) -
Gem
:: Command (13) -
Gem
:: Commands :: BuildCommand (13) -
Gem
:: Commands :: DependencyCommand (13) -
Gem
:: Installer (39) -
Gem
:: Specification (91) -
Gem
:: Uninstaller (13) - IO (130)
-
IRB
:: ExtendCommand :: ChangeWorkspace (13) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (13) -
IRB
:: ExtendCommand :: Foreground (13) -
IRB
:: ExtendCommand :: Help (13) -
IRB
:: ExtendCommand :: IrbCommand (13) -
IRB
:: ExtendCommand :: Jobs (13) -
IRB
:: ExtendCommand :: Kill (13) -
IRB
:: ExtendCommand :: Load (13) -
IRB
:: ExtendCommand :: Nop (26) -
IRB
:: ExtendCommand :: PopWorkspace (13) -
IRB
:: ExtendCommand :: PushWorkspace (13) -
IRB
:: ExtendCommand :: Require (13) -
IRB
:: ExtendCommand :: Source (13) -
IRB
:: ExtendCommand :: Workspaces (13) - Module (26)
- Pathname (26)
-
Rake
:: Task (13) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: ProcessController (6) - String (91)
モジュール
- Fcntl (52)
- FileTest (26)
- FileUtils (13)
- Gem (13)
- Kernel (182)
- Process (13)
- RbConfig (13)
-
WEBrick
:: Utils (13) -
Win32
:: Registry :: Constants (13)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (13) - ELIBEXEC (13)
- ENOEXEC (13)
-
FD
_ CLOEXEC (13) -
F
_ DUPFD (13) -
F
_ GETFD (13) -
F
_ SETFD (13) -
KEY
_ EXECUTE (13) -
MAKEFILE
_ CONFIG (13) -
NEWS for Ruby 2
. 0 . 0 (13) -
NEWS for Ruby 2
. 2 . 0 (12) -
NEWS for Ruby 2
. 6 . 0 (8) -
NEWS for Ruby 3
. 1 . 0 (5) - Rubyの起動 (13)
- []= (91)
- ` (13)
-
add
_ bindir (13) -
class
_ exec (13) -
close
_ on _ exec= (13) -
close
_ on _ exec? (13) -
default
_ exec _ format (13) -
default
_ executable (13) -
default
_ executable= (13) -
exec
_ format (13) -
exec
_ format= (13) -
exec
_ under (13) - executable (13)
- executable= (13)
- executable? (70)
-
executable
_ real? (70) - executables (13)
- executables= (13)
- execute (247)
-
find
_ executable (13) -
instance
_ eval (26) -
instance
_ exec (13) -
module
_ exec (13) - new (13)
- popen (104)
-
rb
_ exec (1) -
rb
_ exec _ arg _ addopt (1) -
rb
_ exec _ arg _ fixup (1) -
rb
_ exec _ arg _ init (1) -
rb
_ exec _ end _ proc (13) -
rb
_ exec _ err (1) -
rb
_ proc _ exec _ n (1) -
remove
_ executables (13) -
ruby 1
. 8 . 4 feature (13) -
ruby 1
. 9 feature (13) -
rubygems
/ commands / install _ command (13) -
set
_ close _ on _ exec (13) - sh (13)
- spawn (52)
- system (52)
-
wait
_ all _ jobs _ execution (6) - セキュリティモデル (13)
- 多言語化 (13)
検索結果
先頭5件
-
static VALUE exec
_ under(VALUE (*func)() , VALUE under , VALUE cbase , void *args) (26100.0) -
-
Kernel
. # exec(env , program , *args , options={}) -> () (18123.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={}) -> () (18123.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) -> () (18119.0) -
カレントプロセスを与えられた外部コマンドで置き換えます。
...す。
そうでない場合、command は exec(2) を使用して実行されるので元の
プログラムからいくつかの環境を引き継ぎます。
@param command 実行する外部コマンド。
@param args command に渡す引数。
exec "echo *" # echoes list of files in... -
Kernel
. # exec(command , options={}) -> () (18113.0) -
引数で指定されたコマンドを実行します。
...rno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のようになります。
$ ruby a.rb
実行前... -
Kernel
. # exec(env , command , options={}) -> () (18113.0) -
引数で指定されたコマンドを実行します。
...rno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のようになります。
$ ruby a.rb
実行前... -
int rb
_ run _ exec _ options(const struct rb _ exec _ arg *e , struct rb _ exec _ arg *s) (6300.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) (6300.0) -
この関数は deprecated です。
この関数は deprecated です。 -
Gem
:: Specification # default _ executable=(executable) (6200.0) -
Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
...Gem パッケージ内で gem コマンド経由で実行するファイルをセットします。
@param executable 実行ファイルを指定します。... -
Gem
:: Specification # executable=(executable) (6200.0) -
実行可能ファイル名をセットします。
...実行可能ファイル名をセットします。
@param executable 実行可能ファイル名を指定します。...
