1094件ヒット
[1-100件を表示]
(0.104秒)
ライブラリ
- ビルトイン (480)
- 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)
- rake (24)
- rbconfig (12)
-
rubygems
/ commands / build _ 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
:: Commands :: BuildCommand (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) -
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)
- RbConfig (12)
-
WEBrick
:: Utils (12) -
Win32
:: Registry :: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ELIBEXEC (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) - Rubyの起動 (12)
- []= (84)
- ` (12)
-
add
_ bindir (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? (54)
-
executable
_ real? (54) - executables (12)
- executables= (12)
- execute (204)
-
find
_ executable (12) -
instance
_ eval (24) -
instance
_ 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)
検索結果
先頭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) -
引数で指定されたコマンドを実行します。
...list{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param opti......ons オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のよ... -
Kernel
. # exec(env , command , options={}) -> () (18213.0) -
引数で指定されたコマンドを実行します。
...list{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param opti......ons オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist[例][ruby]{
# a.rb
puts '実行前'
exec 'echo "実行中"'
puts '実行後'
//}
上記のスクリプトを実行すると以下のよ... -
VALUE rb
_ exec _ arg _ init(int argc , VALUE *argv , int accept _ shell , struct rb _ exec _ arg *e) (12500.0) -
この関数は deprecated です。
この関数は deprecated です。 -
Kernel
# find _ executable(bin , path = nil) -> String | nil (12400.0) -
パス path から実行ファイル bin を探します。
...ら実行ファイル bin を探します。
実行ファイルが見つかった場合は、そのフルパスを返します。
実行ファイルが見つからなかった場合は、nilを返します。
このメソッドは Makefile を変更しません。
@param bin 実行ファイルの......名前を指定します。
@param path パスを指定します。デフォルトは環境変数 PATH です。
環境変数 PATH が定義されていない場合は /usr/local/bin,
/usr/ucb, /usr/bin, /bin を使います。... -
int rb
_ run _ exec _ options(const struct rb _ exec _ arg *e , struct rb _ exec _ arg *s) (12400.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) (12400.0) -
この関数は deprecated です。
この関数は deprecated です。 -
IRB
:: ExtendCommand :: IrbCommand # execute(*obj) -> IRB :: Irb (12300.0) -
新しいサブ irb インタプリタを起動します。
...新しいサブ irb インタプリタを起動します。
@param obj 新しいサブ irb インタプリタで self にするオブジェクトを指定
します。省略した場合は irb を起動したときの main オブジェク
トを self にします。... -
void rb
_ exec _ arg _ fixup(struct rb _ exec _ arg *e) (12300.0) -
この関数は deprecated です。
この関数は deprecated です。 -
BasicObject
# instance _ exec(*args) {|*vars| . . . } -> object (12219.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... -
IRB
:: ExtendCommand :: Require # execute(file _ name) -> bool (12200.0) -
ファイル file_name を現在の irb インタプリタ上で実行します。
...ル file_name を現在の irb インタプリタ上で実行します。
file_name に Ruby スクリプトを指定した場合は、Kernel.#require と異
なり、file_name の内容を irb で一行ずつタイプしたかのように、irb 上で一
行ずつ評価されます。require に......成功した場合は true を、そうでない場合は
false を返します。
拡張ライブラリ(*.so,*.o,*.dll など)を指定した場合は単純に require され
ます。
@param file_name ファイル名を文字列で指定します。...