別のキーワード
ライブラリ
- ビルトイン (528)
- 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 (24)
- rbconfig (12)
-
rubygems
/ command (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ defaults (12) -
rubygems
/ installer (36) -
rubygems
/ specification (84) -
rubygems
/ uninstaller (12) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ process-controller (6) -
webrick
/ utils (12) -
win32
/ registry (12)
クラス
- BasicObject (36)
- File (24)
-
File
:: Stat (24) -
Gem
:: Command (12) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Installer (36) -
Gem
:: Specification (84) -
Gem
:: Uninstaller (12) - 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)
-
Rake
:: Task (12) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: ProcessController (6) - String (84)
モジュール
- Fcntl (48)
- FileTest (24)
- FileUtils (12)
- Gem (12)
- Kernel (168)
- Process (12)
- RbConfig (12)
-
WEBrick
:: Utils (12) -
Win32
:: Registry :: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ELIBEXEC (12)
- ENOEXEC (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 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) -
default
_ executable= (12) -
exec
_ format (12) -
exec
_ format= (12) -
exec
_ under (12) - executable (12)
- executable= (12)
- executable? (66)
-
executable
_ real? (66) - executables (12)
- executables= (12)
- execute (228)
-
find
_ executable (12) -
instance
_ eval (24) -
instance
_ exec (12) -
module
_ exec (12) - new (12)
- popen (96)
-
rb
_ exec (1) -
rb
_ exec _ arg _ addopt (1) -
rb
_ exec _ arg _ fixup (1) -
rb
_ exec _ arg _ init (1) -
rb
_ exec _ end _ proc (12) -
rb
_ exec _ err (1) -
rb
_ proc _ exec _ n (1) -
remove
_ executables (12) -
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件
-
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 実行可能ファイル名を指定します。... -
Gem
:: Specification # executables=(executables) (6200.0) -
実行可能ファイル名のリストをセットします。
...実行可能ファイル名のリストをセットします。
@param executables 実行可能ファイル名のリストを指定します。...