69件ヒット
[1-69件を表示]
(0.009秒)
種類
- 特異メソッド (39)
- インスタンスメソッド (30)
クラス
- Shell (39)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6)
キーワード
- > (6)
- >> (6)
-
block
_ output _ synchronize (6) -
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6)
検索結果
先頭5件
-
Shell
# out(dev = STDOUT , &block) -> () (18215.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...
Shell#transact を呼び出しその結果を dev に出力します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.......new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (18214.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...
Shell#transact を呼び出しその結果を dev に出力します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.......new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (18214.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...
Shell#transact を呼び出しその結果を dev に出力します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.......new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (6102.0) -
@todo
@todo
@see Mutex#exclusive_unlock -
Shell
. debug _ output _ lock -> Mutex (6102.0) -
@todo
@todo
@see Mutex#lock@todo
@see Thread::Mutex#lock -
Shell
. debug _ output _ locked? -> bool (6102.0) -
@todo
@todo
@see Mutex#locked?@todo
@see Thread::Mutex#locked? -
Shell
. debug _ output _ synchronize (6102.0) -
@todo
@todo
@see Mutex#synchronize@todo
@see Thread::Mutex#synchronize -
Shell
. debug _ output _ try _ lock -> bool (6102.0) -
@todo
@todo
@see Mutex#try_lock@todo
@see Thread::Mutex#try_lock -
Shell
. debug _ output _ unlock -> Mutex | nil (6102.0) -
@todo
@todo
@see Mutex#unlock@todo
@see Thread::Mutex#unlock -
Shell
:: ProcessController . block _ output _ synchronize { . . . } -> () (6101.0) -
@todo
@todo -
Shell
:: Filter # >(to) -> self (13.0) -
toをフィルタの出力とする。 toが, 文字列ならばファイルに, IOオブジェクトであれ ばそれをそのまま出力とする。
...ルに,IOオブジェクトならばそれに出力します。
使用例
require 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.transact {
(sh.tail("-n 3") < "/etc/passwd") > File.open("tail.out", "w")
#(sh.tail("-n 3") < "/etc/passwd") > "tail.out" # と同じ.
}... -
Shell
:: Filter # >>(to) -> self (13.0) -
toをフィルタに追加する。 toが, 文字列ならばファイルに, IOオブジェクトであれば それをそのまま出力とする。
...IOオブジェクトならばそれに出力します。
使用例
require 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.transact {
(sh.tail("-n 3") < "/etc/passwd") >> "tail.out"
#(sh.tail("-n 3") < "/etc/passwd") >> File.open("tail.out", "w") # でも同じ。
}...