るりまサーチ

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

別のキーワード

  1. _builtin to_h
  2. hash to_h
  3. array to_h
  4. env to_h
  5. struct to_h

検索結果

<< 1 2 3 ... > >>

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...
<< 1 2 3 ... > >>