1611件ヒット
[1-100件を表示]
(0.152秒)
ライブラリ
- ビルトイン (384)
- benchmark (132)
- fileutils (12)
- matrix (12)
- mkmf (12)
-
net
/ ftp (12) - pty (48)
- rake (36)
- readline (12)
- resolv (12)
-
rexml
/ document (108) -
rexml
/ sax2listener (24) -
rexml
/ streamlistener (36) -
rubygems
/ config _ file (24) -
rubygems
/ defaults (12) -
rubygems
/ exceptions (12) -
rubygems
/ source _ info _ cache (48) - shell (96)
-
shell
/ command-processor (66) -
shell
/ filter (84) -
shell
/ system-command (102) - socket (72)
- syslog (24)
- timeout (21)
-
win32
/ resolv (12) - win32ole (36)
- zlib (12)
クラス
-
Benchmark
:: Tms (72) - Dir (72)
-
File
:: Stat (12) -
Gem
:: ConfigFile (24) -
Gem
:: SourceInfoCache (48) - Matrix (12)
-
Net
:: FTP (12) -
RDoc
:: Options (12) -
REXML
:: DocType (36) -
REXML
:: Entity (12) -
REXML
:: NotationDecl (36) -
Rake
:: Application (12) - Shell (96)
-
Shell
:: CommandProcessor (66) -
Shell
:: Filter (84) -
Shell
:: SystemCommand (96) - Socket (36)
- String (12)
- SystemCallError (60)
- SystemExit (36)
- WIN32OLE (24)
-
WIN32OLE
_ TYPELIB (12) -
Win32
:: Resolv (12)
モジュール
- Benchmark (60)
- FileUtils (24)
- Gem (12)
- Kernel (168)
- PTY (48)
-
REXML
:: SAX2Listener (24) -
REXML
:: StreamListener (36) - Rake (12)
- Readline (12)
-
Socket
:: Constants (36) - Syslog (24)
- Timeout (21)
- Zlib (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (6)
- === (12)
- > (6)
- >> (6)
-
AF
_ SYSTEM (24) -
EAI
_ SYSTEM (24) - Entity (12)
- FORMAT (24)
- Hosts (12)
-
LOCALE
_ SYSTEM _ DEFAULT (12) - Mac OS X (12)
-
NEWS for Ruby 2
. 0 . 0 (12) - NotationDecl (12)
-
OPERATING
_ SYSTEM _ DEFAULTS (12) -
OS
_ ZSYSTEM (12) -
PF
_ SYSTEM (24) -
SYSTEM
_ WIDE _ CONFIG _ FILE (12) - SystemCallError (12)
- SystemCommand (6)
- SystemExit (12)
- SystemExitException (12)
- SystemStackError (12)
- Win32ネイティブ版Rubyの互換性問題 (12)
- ` (12)
- active? (6)
-
alias
_ command (6) - application= (12)
- benchmark (12)
- bm (12)
- bmbm (12)
- cat (18)
- command (6)
- cstime (12)
-
def
_ system _ command (12) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
default
_ system _ source _ cache _ dir (12) - doctype (24)
- each (6)
- echo (18)
- eigensystem (12)
- entitydecl (12)
- entries (12)
- errno (12)
- exec (48)
- external (12)
-
external
_ id (12) -
find
_ system _ command (18) - flush (6)
- foreach (24)
- format (12)
-
get
_ hosts _ path (12) - getpty (24)
- glob (18)
- input= (6)
-
install
_ system _ commands (12) - kill (6)
-
latest
_ system _ cache _ file (24) - locale (12)
- measure (12)
- name (6)
- new (102)
- notationdecl (24)
- notify (12)
-
op
_ dir (12) - open (24)
- open! (12)
- out (18)
- pipe? (12)
- public (12)
- rake (12)
- rdoc (12)
- readline (12)
- reopen (12)
-
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - sh (12)
-
shell
/ system-command (6) - spawn (72)
- start (6)
-
start
_ export (6) -
start
_ import (6) - status (12)
- stime (12)
- success? (12)
- sum (12)
-
super
_ each (6) - system= (12)
-
system
_ cache _ file (24) -
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
- timeout (21)
-
to
_ a (18) -
to
_ s (6) - transact (18)
- tsort (12)
-
undef
_ system _ command (12) - uptodate? (12)
- wait? (6)
- xsystem (12)
- | (6)
検索結果
先頭5件
-
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (27419.0) -
command を実行する.
...で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
tsort (26120.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3],......=>[]}.tsort
#=> [3, 2, 1, 4]
{1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
=== より現実的な例
非常に単純な `make' に似たツールは以下のように実装できます。
//emlist[][ruby]{
require 'tsort'
class Make
def initialize......outputs_time <= inputs_time
sleep 1 if inputs_time != nil && inputs_time.to_i == Time.now.to_i
block.call
end
end
}
end
def tsort_each_child(node, &block)
@dep[node].each(&block)
end
include TSort
end
def command(arg)
print arg, "\n"
system ar... -
Shell
# system(command , *opts) -> Shell :: SystemCommand (24419.0) -
command を実行する.
...で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (24419.0) -
command を実行する.
...で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Kernel
. # system(command , options={}) -> bool | nil (24236.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
options で :exception に true を指定することで、
nil や false を返......のかは、普通
$? を参照することで判別可能です。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直......ます。
@raise RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプション... -
Kernel
. # system(env , command , options={}) -> bool | nil (24236.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
options で :exception に true を指定することで、
nil や false を返......のかは、普通
$? を参照することで判別可能です。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直......ます。
@raise RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプション... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (24221.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
options で :exception に true を指定することで、
nil や false を返......失敗したの
かは、普通 $? を参照することで判別可能です。
Hash を options として渡すことで、起動される子プロセスの
* プロセスグループ
* resource limit
* カレントディレクトリ
* umask
* 子プロセスでのリダイレクト
な......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(program , *args , options={}) -> bool | nil (24221.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
options で :exception に true を指定することで、
nil や false を返......失敗したの
かは、普通 $? を参照することで判別可能です。
Hash を options として渡すことで、起動される子プロセスの
* プロセスグループ
* resource limit
* カレントディレクトリ
* umask
* 子プロセスでのリダイレクト
な......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
REXML
:: DocType # system -> String | nil (24219.0) -
DTD のシステム識別子を返します。
...DTD のシステム識別子を返します。
DTD が外部サブセットを含んでいない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.......org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype.system # => "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype.public # => "-//W3C//DTD XHTML 1.0 Strict//EN"
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root SYSTEM "foobar">
EOS
doctype.system # => "foobar"
doctype.public #... -
Kernel
. # system(command , options={}) -> bool | nil (24218.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil......のかは、普通
$? を参照することで判別可能です。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直......文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , command , options={}) -> bool | nil (24218.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil......のかは、普通
$? を参照することで判別可能です。
=== 引数の解釈
この形式では command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直......文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (24218.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil......失敗したの
かは、普通 $? を参照することで判別可能です。
Hash を options として渡すことで、起動される子プロセスの
* プロセスグループ
* resource limit
* カレントディレクトリ
* umask
* 子プロセスでのリダイレクト
な......ptions オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system... -
Kernel
. # system(program , *args , options={}) -> bool | nil (24218.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil......失敗したの
かは、普通 $? を参照することで判別可能です。
Hash を options として渡すことで、起動される子プロセスの
* プロセスグループ
* resource limit
* カレントディレクトリ
* umask
* 子プロセスでのリダイレクト
な......ptions オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system... -
Net
:: FTP # system -> String (24201.0) -
サーバーの OS のタイプを返します。
...ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答...