234件ヒット
[1-100件を表示]
(0.127秒)
クラス
- Shell (36)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (84) -
Shell
:: SystemCommand (66)
キーワード
- < (6)
- > (6)
- >> (6)
- cat (18)
- command (6)
- each (6)
- echo (18)
-
find
_ system _ command (12) - glob (18)
- kill (6)
- name (6)
- notify (12)
- out (12)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
super
_ each (6) -
system
_ path (6) - tee (18)
- terminate (6)
-
to
_ a (6) -
to
_ s (6) - transact (18)
- | (6)
検索結果
先頭5件
-
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (30421.0) -
command を実行する.
....
@param 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 (27421.0) -
command を実行する.
....
@param 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
:: SystemCommand # terminate -> () (24302.0) -
@todo
...@todo... -
Shell
:: SystemCommand # start _ export (21302.0) -
@todo
...@todo... -
Shell
:: SystemCommand # start _ import -> () (21302.0) -
@todo
...@todo... -
Shell
:: Filter # find _ system _ command(command) (18203.0) -
@todo
...@todo... -
Shell
:: CommandProcessor # find _ system _ command(command) (15203.0) -
@todo
...@todo... -
Shell
:: SystemCommand # start -> () (15202.0) -
@todo
...@todo... -
Shell
# system _ path -> Array (12317.0) -
コマンドサーチパスの配列を返す。
...コマンドサーチパスの配列を返す。
@param path コマンドサーチパスの配列を指定します。
使用例
require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]... -
Shell
:: Filter # tee(file) -> Shell :: Filter (12308.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat......(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# transact { . . . } -> object (12221.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}... -
Shell
:: CommandProcessor # transact { . . . } -> object (12220.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}... -
Shell
:: Filter # transact { . . . } -> object (12220.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}... -
Shell
:: SystemCommand # super _ each -> () (12102.0) -
@todo
...@todo
Shell::Filter#each です。... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (9308.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat......(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (9208.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|......file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (9208.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|......file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...