ライブラリ
- ビルトイン (396)
- 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 (102)
-
shell
/ command-processor (66) -
shell
/ filter (84) -
shell
/ system-command (102) - socket (72)
- syslog (36)
- timeout (21)
-
win32
/ resolv (12) - win32ole (36)
- zlib (12)
クラス
-
Benchmark
:: Tms (72) - Dir (72)
-
File
:: Stat (12) -
Gem
:: ConfigFile (24) -
Gem
:: SourceInfoCache (48) - IO (12)
- Matrix (12)
-
Net
:: FTP (12) -
RDoc
:: Options (12) -
REXML
:: DocType (36) -
REXML
:: Entity (12) -
REXML
:: NotationDecl (36) -
Rake
:: Application (12) - Shell (102)
-
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) -
NEWS for Ruby 2
. 6 . 0 (7) - NotationDecl (12)
-
OPERATING
_ SYSTEM _ DEFAULTS (12) -
OS
_ ZSYSTEM (12) -
PF
_ SYSTEM (24) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
-
SYSTEM
_ WIDE _ CONFIG _ FILE (12) - Syslog (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)
-
close
_ on _ exec= (12) - 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 / pullparser (12) -
rexml
/ parsers / sax2parser (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)
-
unalias
_ command (6) -
undef
_ system _ command (12) - uptodate? (12)
- wait? (6)
- xsystem (12)
- | (6)
- セキュリティモデル (12)
- 環境変数 (12)
検索結果
先頭5件
-
Shell
# system(command , *opts) -> Shell :: SystemCommand (18219.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 (18219.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
:: Filter # system(command , *opts) -> Shell :: SystemCommand (18219.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 (18136.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプションを指定][ruby]{
system("sad", exception: true) # => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true)......# => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , command , options={}) -> bool | nil (18136.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...ル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
//emlist[exceptionオプションを指定][ruby]{
system("sad", exception: true) # => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true)......# => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (18121.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...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 (18121.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
REXML
:: DocType # system -> String | nil (18119.0) -
DTD のシステム識別子を返します。
...html1/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 # => nil
//... -
Kernel
. # system(command , options={}) -> bool | nil (18118.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...文字列で指定します。
@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 (18118.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...文字列で指定します。
@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 (18118.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(program , *args , options={}) -> bool | nil (18118.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Net
:: FTP # system -> String (18101.0) -
サーバーの OS のタイプを返します。
サーバーの OS のタイプを返します。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外でエラーである場合に発生します。 -
REXML
:: NotationDecl # system -> String | nil (18101.0) -
システム識別子(URI)を返します。
システム識別子(URI)を返します。
宣言がシステム識別子を含まない場合は nil を返します。