548件ヒット
[1-100件を表示]
(0.143秒)
ライブラリ
- ビルトイン (66)
- benchmark (99)
- fileutils (11)
- rake (11)
- readline (11)
-
rubygems
/ defaults (11) -
rubygems
/ source _ info _ cache (44) - shell (54)
-
shell
/ command-processor (36) -
shell
/ filter (84) -
shell
/ system-command (66) -
win32
/ resolv (11)
クラス
-
Benchmark
:: Tms (55) - Dir (66)
-
Gem
:: SourceInfoCache (44) - Shell (54)
-
Shell
:: CommandProcessor (36) -
Shell
:: Filter (84) -
Shell
:: SystemCommand (66) -
Win32
:: Resolv (11)
キーワード
- < (6)
- > (6)
- >> (6)
- FORMAT (22)
-
NEWS for Ruby 2
. 0 . 0 (11) - active? (6)
-
alias
_ command (6) - benchmark (11)
- bm (11)
- bmbm (11)
- cat (18)
- command (6)
- cstime (11)
-
def
_ system _ command (6) -
default
_ system _ source _ cache _ dir (11) - each (6)
- echo (18)
- entries (11)
-
find
_ system _ command (18) - foreach (22)
- format (11)
-
get
_ hosts _ path (11) - glob (18)
- input= (6)
-
install
_ system _ commands (12) - kill (6)
-
latest
_ system _ cache _ file (22) - name (6)
- new (22)
- notify (12)
- open (22)
- out (6)
- rake (11)
- readline (11)
-
rexml
/ parsers / ultralightparser (11) -
ruby 1
. 8 . 4 feature (11) - sh (11)
-
start
_ import (6) - stime (11)
-
system
_ cache _ file (22) - tee (18)
- terminate (6)
-
to
_ a (6) -
to
_ s (6) - transact (6)
-
unalias
_ command (6) - uptodate? (11)
- wait? (6)
- | (6)
検索結果
先頭5件
-
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (24319.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... -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (21301.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # system _ cache _ file -> String (21301.0) -
システムキャッシュファイルの名前を返します。
システムキャッシュファイルの名前を返します。 -
Gem
:: SourceInfoCache . latest _ system _ cache _ file -> String (21301.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache . system _ cache _ file -> String (21301.0) -
システムキャッシュのファイル名を返します。
システムキャッシュのファイル名を返します。 -
Gem
. default _ system _ source _ cache _ dir -> String (18301.0) -
デフォルトのシステム全体のソースキャッシュファイルのパスを返します。
デフォルトのシステム全体のソースキャッシュファイルのパスを返します。 -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (15223.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
}
}... -
Shell
# find _ system _ command(command) (15201.0) -
@todo
@todo -
Shell
:: CommandProcessor # find _ system _ command(command) (15201.0) -
@todo
@todo -
Shell
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (15201.0) -
全てのシステムコマンドをメソッドとして定義します。
...うプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。... -
Shell
:: Filter # find _ system _ command(command) (15201.0) -
@todo
@todo -
Shell
:: SystemCommand # input=(inp) (12200.0) -
@todo
@todo -
FileUtils
# sh(*cmd) {|result , status| . . . } (12106.0) -
与えられたコマンドを実行します。
...参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system...