485件ヒット
[1-100件を表示]
(0.153秒)
ライブラリ
- ビルトイン (66)
- benchmark (99)
- fileutils (11)
- readline (11)
-
rubygems
/ defaults (11) -
rubygems
/ source _ info _ cache (44) - shell (48)
-
shell
/ command-processor (30) -
shell
/ filter (78) -
shell
/ system-command (54) -
win32
/ resolv (11)
クラス
-
Benchmark
:: Tms (55) - Dir (66)
-
Gem
:: SourceInfoCache (44) - Shell (48)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (78) -
Shell
:: SystemCommand (54) -
Win32
:: Resolv (11)
キーワード
- < (6)
- >> (6)
- FORMAT (22)
- 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) - echo (18)
- entries (11)
- foreach (22)
- format (11)
-
get
_ hosts _ path (11) - glob (18)
-
install
_ system _ commands (12) - kill (6)
-
latest
_ system _ cache _ file (22) - name (6)
- new (22)
- notify (12)
- open (22)
- out (6)
- readline (11)
-
rexml
/ parsers / ultralightparser (11) -
ruby 1
. 8 . 4 feature (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 (24425.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 # >(to) -> self (24118.0) -
toをフィルタの出力とする。 toが, 文字列ならばファイルに, IOオブジェクトであれ ばそれをそのまま出力とする。
...に, IOオブジェクトであれ
ばそれをそのまま出力とする。
@param to 出力先を指定します。文字列ならばファイルに,IOオブジェクトならばそれに出力します。
使用例
require 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.tran......sact {
(sh.tail("-n 3") < "/etc/passwd") > File.open("tail.out", "w")
#(sh.tail("-n 3") < "/etc/passwd") > "tail.out" # と同じ.
}... -
Gem
:: SourceInfoCache # latest _ system _ cache _ file -> String (21401.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache # system _ cache _ file -> String (21401.0) -
システムキャッシュファイルの名前を返します。
システムキャッシュファイルの名前を返します。 -
Gem
:: SourceInfoCache . latest _ system _ cache _ file -> String (21401.0) -
最新のシステムキャッシュのファイル名を返します。
最新のシステムキャッシュのファイル名を返します。 -
Gem
:: SourceInfoCache . system _ cache _ file -> String (21401.0) -
システムキャッシュのファイル名を返します。
システムキャッシュのファイル名を返します。 -
Gem
. default _ system _ source _ cache _ dir -> String (18401.0) -
デフォルトのシステム全体のソースキャッシュファイルのパスを返します。
デフォルトのシステム全体のソースキャッシュファイルのパスを返します。 -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (15323.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
:: CommandProcessor . install _ system _ commands(prefix = "sys _ ") -> () (15301.0) -
全てのシステムコマンドをメソッドとして定義します。
...うプレフィクスが付きます。
また、メソッド名として使用できない文字は全て "_" に置換してメソッドを定義します。
このメソッドの実行中に発生した例外は単に無視されます。
@param prefix プレフィクスを指定します。... -
Shell
:: SystemCommand # active? -> bool (12200.0) -
@todo
@todo -
Shell
:: SystemCommand # kill(signal) -> Integer (12200.0) -
自身のプロセスにシグナルを送ります。
...m signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。
@see Process.#kill... -
Shell
:: SystemCommand # notify(*opts) -> String (12200.0) -
@todo
...@todo
@param opts
@see Shell#notify... -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (12200.0) -
@todo
...@todo
@param opts
@see Shell#notify...