1007件ヒット
[1-100件を表示]
(0.123秒)
ライブラリ
- ビルトイン (440)
- 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)
- rake (22)
- rbconfig (11)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ defaults (11) -
rubygems
/ installer (33) -
rubygems
/ specification (77) -
rubygems
/ uninstaller (11) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
shell
/ process-controller (6) -
webrick
/ utils (11) -
win32
/ registry (11)
クラス
- BasicObject (33)
- File (22)
-
File
:: Stat (22) -
Gem
:: Commands :: BuildCommand (11) -
Gem
:: Installer (33) -
Gem
:: Specification (77) -
Gem
:: Uninstaller (11) - 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) -
Rake
:: Task (11) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Shell
:: ProcessController (6) - String (77)
モジュール
- Fcntl (44)
- FileTest (22)
- FileUtils (11)
- Gem (11)
- Kernel (154)
- RbConfig (11)
-
WEBrick
:: Utils (11) -
Win32
:: Registry :: Constants (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ELIBEXEC (11)
-
FD
_ CLOEXEC (11) -
F
_ DUPFD (11) -
F
_ GETFD (11) -
F
_ SETFD (11) -
KEY
_ EXECUTE (11) -
MAKEFILE
_ CONFIG (11) -
NEWS for Ruby 2
. 0 . 0 (11) - Rubyの起動 (11)
- []= (77)
- ` (11)
-
add
_ bindir (11) -
close
_ on _ exec= (11) -
close
_ on _ exec? (11) -
default
_ exec _ format (11) -
default
_ executable (11) -
default
_ executable= (11) -
exec
_ format (11) -
exec
_ format= (11) -
exec
_ under (11) - executable (11)
- executable= (11)
- executable? (51)
-
executable
_ real? (51) - executables (11)
- executables= (11)
- execute (187)
-
find
_ executable (11) -
instance
_ eval (22) -
instance
_ exec (11) - new (11)
- popen (88)
-
rb
_ exec (1) -
rb
_ exec _ arg _ addopt (1) -
rb
_ exec _ arg _ fixup (1) -
rb
_ exec _ arg _ init (1) -
rb
_ exec _ end _ proc (11) -
rb
_ exec _ err (1) -
rb
_ proc _ exec _ n (1) -
remove
_ executables (11) -
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)
検索結果
先頭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 ファイル名を文字列で指定します。... -
Shell
:: ProcessController # wait _ all _ jobs _ execution -> () (12200.0) -
全てのジョブの実行が終わるまで待ちます。
全てのジョブの実行が終わるまで待ちます。 -
Errno
:: ELIBEXEC (12000.0) -
システムコールのエラーコードを表す例外クラスです。詳細は Errno::EXXX を参照してください。
システムコールのエラーコードを表す例外クラスです。詳細は Errno::EXXX を参照してください。