るりまサーチ

最速Rubyリファレンスマニュアル検索!
1595件ヒット [1-100件を表示] (0.019秒)
トップページ > クエリ:system[x]

別のキーワード

  1. kernel system
  2. _builtin system
  3. socket pf_system
  4. socket af_system
  5. socket eai_system

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

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 を返します。

Shell.install_system_commands(pre = "sys_") -> () (6123.0)

system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.

...
system
_path上にある全ての実行可能ファイルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.

@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。

使用例: ls -l | head -n 5...
...のような例。

require 'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}...

絞り込み条件を変える

<< 1 2 3 ... > >>